[Resolved] Hook to add share buttons after specific image

Home Forums Support Hook to add share buttons after specific image

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1440899
    Alessio

    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!!

    #1441211
    David
    Staff
    Customer Support

    Hi there,

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

    #1441386
    Alessio

    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.

    #1441694
    Tom
    Lead Developer
    Lead Developer

    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.

    #1444032
    Alessio

    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.

    #1444066
    David
    Staff
    Customer Support

    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.

    #1449161
    Alessio

    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?

    #1449167
    Leo
    Staff
    Customer Support

    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?

    #1449179
    Alessio

    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

    #1449183
    Leo
    Staff
    Customer Support

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

    Thank you 🙂

    #1449185
    Alessio

    Sure, I’ll do that!

    #1449186
    Leo
    Staff
    Customer Support
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.