Jump to content

Blog Title Links Don't Work

Go to solution Solved by tuanphan,

Recommended Posts

I used the code below to enable italics to appear in blog titles in the blog landing page.

Quote

 

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

 

 

 

However, once this was inserted, the blog titles themselves are no longer clickable. How could I make them clickable again?

Thanks so much.

Link to comment
  • Replies 4
  • Views 336
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
On 4/16/2023 at 11:35 PM, CalifLRev said:

Hi thanks for the repsonse! On the blog page. Here's a link: https://kazoo-cheetah-9f28.squarespace.com/online

Try this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>  
$(document).ready(function(){
  $(".blog-basic-grid--text h1.blog-title a").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

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.