Jump to content

Code for Hiding Images in a Blog Post

Recommended Posts

Posted

Site URL: https://cassandrabethntp.com/articles/epic-copycat-beef-and-liver-jerky-strips

I am wanting to hide an image (for Pinterest) in the bottom of my blog posts. I am adding this by a code block at the bottom. Several of my blog posts have worked previously but now I cannot get the image to pin on Pinterest. 

https://cassandrabethntp.com/articles/epic-copycat-beef-and-liver-jerky-strips - Particular post I'm having trouble with. 

I have tried both of these codes below: 

<div style="display:none">

<a href="IMAGE ADDRESS GOES HERE"><img src="IMAGE ADDRESS GOES HERE" border=0 alt="this is the alt text"/></a>

</div>

 

or this one without the second image link

<div style="display:none">

  <img src="https://images.squarespace-cdn.com/content/5b7b56a6cef37238032c25e1/1600177738543-HMD1F6GM2CZO3XM5NAO8/Copycat+DIY+Epic+Beef+and+Liver+Bites?format=300w&content-type=image%2Fpng" />

</div>


Any ideas? Thank you!

  • Replies 3
  • Views 549
  • Created
  • Last Reply
  • 1 month later...
Posted

 

On 9/18/2020 at 1:03 PM, tuanphan said:

You want to hide an image, or hide pinterest?

I want to hide the image on my blog post but make it so that it comes up on pinterest. It has worked for my other posts.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.