Social Sharing Icons just Before Post Content

Community Forums Forums General Discussion Social Sharing Icons just Before Post Content

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  SoZo 2 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17699

    reydar
    Participant

    Hello,

    I have created a Div which contains the social sharing buttons and I would like to include just before post/page content. Where should I insert the code? My guess is that I should include it in the #inner just before the content wrap. Can someone please give me some guidance with this? Thanks!

    #17704

    SoZo
    Moderator

    You can use the before_content hook


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17778

    reydar
    Participant

    Thanks, I read about the before content hook. Which file do I need to edit and where do I place the hook and my content? Do I need to make a separate php file with my content and define it as a hook?

    #17845

    SoZo
    Moderator

    Functions can be placed into functions.php unless you need them in another template. How did you add your div? Have you read the tutorials here?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #18011

    reydar
    Participant

    Thank you sir, I got it working now.

    #18053

    SoZo
    Moderator

    You’re welcome :)


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Social Sharing Icons just Before Post Content’ is closed to new replies.