• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Social Sharing Icons just Before Post Content

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 13 years, 4 months ago by SoZo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 3, 2013 at 4:46 pm #17699
    reydar
    Member

    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!

    February 3, 2013 at 6:08 pm #17704
    SoZo
    Member

    You can use the before_content hook


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

    February 3, 2013 at 11:12 pm #17778
    reydar
    Member

    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?

    February 4, 2013 at 9:10 am #17845
    SoZo
    Member

    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

    February 4, 2013 at 3:20 pm #18011
    reydar
    Member

    Thank you sir, I got it working now.

    February 4, 2013 at 4:34 pm #18053
    SoZo
    Member

    You're welcome 🙂


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

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Social Sharing Icons just Before Post Content’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble