Jump to content

Adding small words to portfolio headings

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 9
  • Views 529
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This is possible with code, HTML and CSS, or potentially just CSS and ::after with content, it would depend on your setup. Can you share your website URL and this page?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

A

#UNIQUESQUARESPACEID h1::after {
  content: "smaller type message here";
  font-size: small;
  margin-top: -10px;
/* other alignment rules likely needed */
}

Without seeing your site we would need to make several assumptions here, but something like this should work.

Link to comment

This is the code I tried using: 

 

/* Add subtitle */

h1.portfolio-title:after {
    font-size: 20px;
    color: black;
}
a.portfolio-hover-item[href="/grid-simple/project-one-efc56"] h1:after {
    content: “FRESH”;
}

 

because I wanted to use different subtitles for each portfolio title

Link to comment
On 3/8/2023 at 8:47 AM, Indi said:

This is the code I tried using: 

 

/* Add subtitle */

h1.portfolio-title:after {
    font-size: 20px;
    color: black;
}
a.portfolio-hover-item[href="/grid-simple/project-one-efc56"] h1:after {
    content: “FRESH”;
}

 

because I wanted to use different subtitles for each portfolio title

Did you solve with this code or still need help?

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!)

Link to comment
  • 2 weeks later...
  • Solution
On 3/23/2023 at 6:51 AM, Indi said:

@tuanphan  Still need help, this code didn't work.

Use this new code

.portfolio-hover-items-list>a span:after {
    display: block;
    font-size: 24px;
}
.portfolio-hover-items-list>a:nth-child(1) span:after {
    content: "new records 1";
}
.portfolio-hover-items-list>a:nth-child(2) span:after {
    content: "2 text";
}
.portfolio-hover-items-list>a:nth-child(3) span:after {
    content: "3 text";
}
.portfolio-hover-items-list>a:nth-child(4) span:after {
    content: "4 text";
}

image.thumb.png.59971a347698d21a055ff33bc12fcd72.png

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!)

Link to comment
  • 1 month later...
On 5/3/2023 at 1:11 PM, Indi said:

@tuanphan Thank you, that worked perfectly.

Do you know how I could move the text so it was above the main heading word? Like in the image attached?

IMG_9019.jpg

Change top code

.portfolio-hover-items-list>a span:after {
    display: inline;
    font-size: 20px;
}

to this

.portfolio-hover-items-list>a span:after {
    display: inline;
    font-size: 20px;
    position: relative;
    top: -30px;
}

 

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!)

Link to comment

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.