Jump to content

Summary block thumbnail image link

Recommended Posts

  • Replies 5
  • Views 619
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

1 hour ago, Adamluk said:

Site URL: https://prdt.design/

I have created a blog page and i have the content pulling into a summary block, I want the thumbnails to link to the "Source URL" for each post. Can anyone help??

Site: https://prdt.design/

Passwoard: Letme!n

Hi. Try this code 

 

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
12 hours ago, Adamluk said:

Did not work, anything i need to tweek?

Add to Settings > Advanced > Code injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$('article.blog-item').each(function() {
    var cr = $(this).find('a.blog-more-link');
    $(this).find('.blog-image-wrapper a').attr('href', cr.attr('href'));
});
</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
On 7/21/2021 at 7:46 PM, Adamluk said:

Still not working, should i remove the header injected code?

Its adding the href link but the light-box is still appearing when you click and its not going through to the url specified. 

Can you remove above code + enable read more link? (Then we will hide it with code)

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.