Jump to content

[Share] Two lines of text on Portfolio Page thumbnails

Recommended Posts

To make portfolio text in two lines, you can follow these steps. 

If you can't make it work, you can send link to Portfolio Page + Code you added, I can check and adjust your code easier.

#1. Determine which portfolio page layout you are using.

First, edit the Portfolio Page

image.png.0501c457aef1c282890e0161e8d89f60.png

See this

image.png.e23d5b2e47f910f925ef190634c7aae8.png

If the Portfolio layout is Grid: Simple or Grid: Overlay, use #3.1 code.

image.png.aa5ca5e88945cabf099afae97016a248.png

If the Portfolio layout is Hover: Follow Cursor or Hover: Fixed or Hover: Background, use #3.2 code

image.png.959dfcf2bc411f6ca7865682acc4769d.png

#2. Find Portfolio Item URL

Just click on each item in the Portfolio List Page, you will see the item URL

image.png.14b87e68df632a9fee85dc9e51c89436.png

Some examples

image.png.74e4ef180455ca0fc2583f4e397c45f2.png

image.png.9603e49a15d7bef0512a35852d981827.png

or you can also hover on the portfolio item > Click 3 dots > Settings

image.thumb.png.ed68bd2f5a058444687fa99278bad845.png

and see URL Slug

image.png.eb5792baa72b65c74e78018a0e555dbd.png

#3.1. With Portfolio layout Grid: Overlay or Grid Simple. Use this code to Custom CSS box

a.grid-item h3:after {
    display: block;
    font-size: 17px;
}
a.grid-item[href="/portfolio01-gridsimple/project-01"] h3:after {
    content: "social media";
}
a.grid-item[href="/portfolio01-gridsimple/project-02"] h3:after {
    content: "marketing";
}
a.grid-item[href="/portfolio01-gridsimple/project-03"] h3:after {
    content: "branding";
}
a.grid-item[href="/portfolio01-gridsimple/project-04"] h3:after {
    content: "motion graphics";
}
a.grid-item[href="/portfolio01-gridsimple/project-05"] h3:after {
    content: "social media";
}
a.grid-item[href="/portfolio01-gridsimple/project-06"] h3:after {
    content: "digital marketing";
}

image.png.48653f2ab8128095ba1a56b49a87e2fd.png

Result

image.png.965bf1828db6d2825582990c479aa1b7.png

image.png.83d041943eabdde17816793b4743904b.png

Remember to replace with the Item URL Slug you have in #2.

image.png.f44aa54531cd32acdbacb1c075218ad6.png

#3.2. With Portfolio layout is Hover: Follow Cursor or Hover: Fixed or Hover: Background. Use this code to Custom CSS

a.portfolio-hover-item span:after {
    display: block;
    font-size: 17px;
}
a.portfolio-hover-item[href="/portfolio-hover-follow-cursor/project-01"] span:after {
    content: "social media";
}
a.portfolio-hover-item[href="/portfolio-hover-follow-cursor/project-02"] span:after {
    content: "marketing";
}
a.portfolio-hover-item[href="/portfolio-hover-follow-cursor/project-03"] span:after {
    content: "branding";
}
a.portfolio-hover-item[href="/portfolio-hover-follow-cursor/project-04"] span:after {
    content: "motion graphics";
}
a.portfolio-hover-item[href="/portfolio-hover-follow-cursor/project-05"] span:after{
    content: "social media";
}

Result

image.png.e31aa477807ccc21054d4e69ff8e7be1.png

Remember to replace with Item URL Slug in #2.

image.png.0d701249a84b1281244da0774b5cc13d.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
  • Replies 0
  • Views 257
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.