Jump to content

Split product titles onto two lines, make second line smaller

Recommended Posts

  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

I think you should wait for his response to modify the code so that the second text is inside an HTML element so it can be styled.

At the moment, I see that only a <br> element is placed to separate the text

Link to comment

I thought about some CSS that can do that
The thing is that you will need to use additional CSS code to adjust the first word on different screen sizes

.pdp-details-title:first-line {
    font-size : calc(var(--heading-1-size-value) * 1rem);

.pdp-details-title {
    font-size : 30px


Screenshot 2024-01-19 at 00.01.53.png

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.