Jump to content

Henson template. Add another line of text, with different size and font, to the title at the home index page.

Recommended Posts

Posted

Site URL: https://www.marta-guerrero.com/

Hi there, 

I am looking into adding a subheading underneath the title on the Henson template, that has different size and color. Perhaps, I am not sure yet, it can be a line that has same fonts and size than Headings, 1, 2, or 3 of the website. 

Would this be possible to do? 
Many thanks

Marta 

I include a screenshoot. Maybe, I would like to justify this subheading on the right side. 

Many thanks for your help. 

1851500394_ScreenShot2022-01-28at15_46_06.thumb.png.f3e9e7259856c4e7535e5f57abd67fa5.png

  • 2 months later...
Posted
On 1/29/2022 at 6:47 PM, tuanphan said:

Try this CSS

body.homepage div#collectionDesc p:first-child:after {
    content: "sub";
    font-size: 20px;
    display: block;
    position: fixed;
    top: calc(~"50% + 10px");
    left: 50%;
    transform: translateX(-50%);
}

 

Thanks tuanphan, is there a way this could be centered between the links below and the title?

It breaks when I have it in mobile view.

kpotterdesign.com

pw:asdf1234

 

 

 

Posted
6 hours ago, 860kp said:

Thanks tuanphan, is there a way this could be centered between the links below and the title?

It breaks when I have it in mobile view.

kpotterdesign.com

pw:asdf1234

 

 

 

It looks like you solved with position fixed?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.