Jump to content

style certain words in a slideshow title?

Go to solution Solved by tuanphan,

Recommended Posts

(This code for Gallery Block - Slideshow. If you use 7.1, please share link to page where you use slideshow, we can adjust code easier)

First, add this code to Settings > Advanced > code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $(".image-slide-title").each(function(){
    $(this).html($(this).text());
  });
});
</script>

Next, add b tag, same as your screenshot

 

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
On 8/18/2022 at 9:02 PM, glenbeavis said:

thanks, @tuanphan - Sorry, i should have mentioned this in my original post, but I am using 7.1 . 
And for legal reasons, I can't share the page right now 😞

Any tips on how to do this in 7.1?

You can setup a trial site, setup slideshow, add b there then share url

or you can duplicate current site, remove all style, content, except slideshow, then share link

We can check easier

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
  • Solution
On 8/23/2022 at 9:55 PM, glenbeavis said:

@tuanphan great idea- here's a duplicate site with everything else removed.

https://seahorse-piano-kgst.squarespace.com/

pw: password

thank you!

 

Add this to Last Line in Code Injection > Footer

<script>
  $(document).ready(function(){
  $(".list-item-content__title").each(function(){
    $(this).html($(this).text());
  });
});
</script>

image.thumb.png.a2f103dc36c117f4a0adca3888021586.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...
16 hours ago, Diggy3768 said:

Hi there! May I ask what the solution for this was? I'm having the EXACT same problem changing the color of one individual word in a slideshow-banner title (squarespace 7.1). It looks great in edit mode but displays cryptic when looking at the site. 

Thanks!

Hi @tuanphan Can you let me know what you did to help @glenbeavis with the above? I'm having the exact same problem (squarespace 7.1).

Link to comment
1 hour ago, FijiAnni said:

Hi @tuanphan Can you let me know what you did to help @glenbeavis with the above? I'm having the exact same problem (squarespace 7.1).

Can you share link to page where you use slideshow?

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
5 hours ago, tuanphan said:

For List under this text? Latest Specials & Fiji Packages.

No, for the title on the banner-slideshow on top of the page. I would like the word ULTIMATE to be bold and yellow. I used the following code (but deleted it again for now as it didn't display the way I wanted after leaving the edit mode. I can add it again if there is a way to make it display correctly when looking at the actual page).

Your <b><font color="#FFE91D">ULTIMATE</b></font color> South Pacific Specialist for over 30 years

Link to comment
19 hours ago, FijiAnni said:

No, for the title on the banner-slideshow on top of the page. I would like the word ULTIMATE to be bold and yellow. I used the following code (but deleted it again for now as it didn't display the way I wanted after leaving the edit mode. I can add it again if there is a way to make it display correctly when looking at the actual page).

Your <b><font color="#FFE91D">ULTIMATE</b></font color> South Pacific Specialist for over 30 years

First, change it to this

Your <span style="color:#FFE91D;">ULTIMATE</span> South Pacific Specialist for over 30 years

Next, add this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $(".list-item-content__title").each(function(){
    $(this).html($(this).text());
  });
});
</script>

 

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
9 minutes ago, tuanphan said:

First, change it to this

Your <span style="color:#FFE91D;">ULTIMATE</span> South Pacific Specialist for over 30 years

Next, add this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $(".list-item-content__title").each(function(){
    $(this).html($(this).text());
  });
});
</script>

 

Amazing! 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.