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 1 year, 2 months ago.

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

    reydar
    Participant
    Post count: 14

    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
    Post count: 1573

    You can use the before_content hook


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

    #17778

    reydar
    Participant
    Post count: 14

    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
    Post count: 1573

    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
    Post count: 14

    Thank you sir, I got it working now.

    #18053

    SoZo
    Moderator
    Post count: 1573

    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.