Jump to content

Changing portfolio grid overlay font and size for 2 lines

Recommended Posts

  • Replies 19
  • Views 990
  • Created
  • Last Reply

Top Posters In This Topic

16 hours ago, Emmapartridge said:
 

Site URL: http://bjornsorensen.com

Wizards please help 🙂

I've tried numerous code and have given up! See the portfolio section.

 

I want the overlay text as 2 separate lines. First line with bold weight 30px and second line with regular weight 20px. I also want a black overlay? How can I do this please?

Try adding to Home > Design > Custom Css

section[data-section-id="607295ad0d6e7a606f92f585"] .portfolio-grid-overlay .portfolio-title:first-line {
  font-weight: bold;
  font-size: 30px;
}
section[data-section-id="607295ad0d6e7a606f92f585"] .portfolio-grid-overlay .portfolio-title {
  font-weight: 300;
  font-size: 20px;
}

Support me by pressing 👍  or marking as solution if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.c2576257a7a233ca259d0d55e13838af.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
7 hours ago, Beyondspace said:
section[data-section-id="607295ad0d6e7a606f92f585"] .portfolio-grid-overlay .portfolio-title:first-line {
  font-weight: bold;
  font-size: 30px;
}
section[data-section-id="607295ad0d6e7a606f92f585"] .portfolio-grid-overlay .portfolio-title {
  font-weight: 300;
  font-size: 20px;
}

 

Link to comment
2 hours ago, Emmapartridge said:

Hi 

Thank you but adding this code made no difference.

Can you show some screenshot where you put my code?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

The code I gave above is applied for only this gallery

image.thumb.png.2cc9c7e4c41d89d48c0d3f8db52b4c81.png

Do you need on another gallery?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

I can not see the my code on your site. I wonder if you remove it or not. You can try the following code to apply for all portfolios

.portfolio-grid-overlay .portfolio-title:first-line {
  font-weight: bold;
  font-size: 30px;
}
.portfolio-grid-overlay .portfolio-title {
  font-weight: 300;
  font-size: 20px;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
4 minutes ago, Emmapartridge said:

I can only see the title on just one line. Do I miss anything?

image.thumb.png.83450f3bb9d6ffaf7227b380831276db.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

I have found this online, a HTML injection - also doesn't work

 

<!--- Wrap gallery titles on two lines -------------------------->
<!--- Copyright Soundfocus Digital [sf.digital] ----------------->
<!--- Use freely in your code injection. Do NOT re-publish ------>
<script>
window.Squarespace.onInitialize(Y, () => {
  var title = document.querySelectorAll('.image-slide-title');
  for (var sf = 0; sf < title.length; ++sf) {
    var item = title[sf]; 
    item.innerHTML = item.innerText.replace(/#/g, '<br>');
  }
});  
</script>
Link to comment

this looks like it might work but I need to know what goes in the Divs?

 

Name of the project <span>Logotyp</span>


.portfolio-text h3 span {
    display: block !important;
    color: #8f8f8f;
  font-family: Poppins !important;
    font-size: 18px !important;
    font-weight: 100 !important;
}

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.