Site logo

Archived topic

Hook to add share buttons after specific image

11 replies · Started by Alessio on September 12, 2020

Viewing posts 1–12 of 12

Hey,

I would like to add Social Sharing Widgets directly after an image with the class .featuredimage. I can specify Hooks or shortcodes in the plugin:
Sharrif Plugin

What Hook can I use to do that?

Thank you!!

Hi there,

is this for the Single Post ? And what layout do you have e.g Featured Image above title ?

Hi there,

I want to do that for both single posts/pages and blog posts.
I'm not generating the Featured Image via generatepress (customizer). I'm manually inserting it with the image widget in the page editor. That's because I want the featured image to be different than the image displayed in the post.
That image is displayed directly under the page title.

Since you're adding it inside the content, there is no hook that the plugin can use to insert the icons below it.

You would need to keep the featured image hooked into the theme, then you could use the same hook/next hook and it would work.

Okay, thanks.
Is there a way to add a different featured image for the post and a different one for other stuff (like social media sharing/the blog page)?

I've added an example as Private Information.

If you want to add a different image for your social sharing then you would need to use an SEO plugin - most of them offer a sharing image option.

Ah alright, I've found an option for that in rank math.
How do I get a featured image for the Blog-Page which differs from the featured image on the Post, though?

How do I get a featured image for the Blog-Page which differs from the featured image on the Post, though?

Not sure if I fully understand. Is this still for URL sharing?

Could you not set a specific image for the blog page in RankMath?

No, this is for my website itself.
I want the featured image on the blog page:
blog page
to be different from the image on the post itself:
post

Any chance you can start a new topic for a new question so it's easier for us to track?

Thank you :)

Sure, I'll do that!

Thanks :)

This archived topic is closed to new replies.