I learned a new trick recently that I want to share with all of you.
You can hide images in your blog posts!
There are two main reasons that you might want to hide Pinterest images in your posts.
- You don’t want to distract from your post with Pinterest images.
- You want to test the response of different images on Pinterest.
Here is step-by-step how to hide images in WordPress.
Step 1 – Add this code to your image tags in the WordPress Text editor.
First insert the image(s) you want to hide into your post.
Then, click the Text tab in the upper right hand corner of your WordPress post editor.
Find the image tag for the image you want to hide.
Add this code before the opening img tag.
<div style = “display:none;”>
Add this code after the closing tag.
Step 2 – Confirm your images are gone.
Go back to the visual tab and scroll through your post to check if your image is gone.
If your code worked correctly, you shouldn’t be able to see your image.
And you’re done!
Your image is now hidden from your post but visible for Pinterest sharing.
Here is an example of how I hid Pinterest pins in WordPress.
I recently wrote a post on how I paid off nearly $90,000 of debt in 18 months.
It is one of my more popular posts so I wanted to create multiple Pinterest images for the post and test which one got a better response.
I also didn’t want to distract from my post with too many Pinterest images.
Step 1 – I created 4 different Pinterest images.
Step 2 – I added the Pinterest images to my post.
Step 3 – I added <div style = “display:none;”> IMAGE CODE </div> tags.
Step 4 – I checked the visual tab to make sure my images were hidden.
Step 5 – I updated the post and shared the pins on Pinterest.
Even though only one image shows in the body of my post, four Pinterest images appear when you click the Pinterest share icon.
Why should you hide Pinterest images in the first place?
Pinterest has brought crazy traffic to my site.
I also enjoy using Pinterest and find great content from other bloggers from Pinterest.
Don’t miss out.
PS- Click the Pinterest share buttons on this post and see my hidden image.
Do you hide Pinterest images in your posts? Any tips?
Join the Tribe!
Subscribe to get our latest content by email and also receive our free Debt Boss eBook AND spreadsheet! We ♥ girl bosses!