• 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

Add Mashable style Share Button at the Top of Posts Pages?

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 › Design Tips and Tricks › Add Mashable style Share Button at the Top of Posts Pages?

This topic is: not resolved

Tagged: Mashable, Mashable share buttons, share buttons

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 6 months ago by Susan.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 20, 2012 at 5:44 pm #6539
    Imxproducts
    Member

    I would like to be able to add share buttons to the top of all post pages (Before the Content) similar to the share buttons and placement Mashable uses here -

    http://mashable.com/2012/12/20/video-game-sandy-hook-ceasefire/

    I have the Google Plus, Facebook and Twitter Buttons, how do I add then to the blog and display them.

    December 20, 2012 at 5:53 pm #6540
    Susan
    Moderator

    There are a number of different plug-ins available for social media share buttons. Rather than just recommend one, here's a link to a number of them:

    25-social-media-plugins-wordpress

    December 20, 2012 at 6:23 pm #6546
    Imxproducts
    Member

    Thanks Susan but all of these plugins have there draw backs,

    I would like to be able to add the code to the theme file.

    Simple Hooks for this?

     

    December 20, 2012 at 6:45 pm #6556
    Susan
    Moderator

    Tougher question 😉

    Here's what I found (disclaimer - I haven't tried it myself!)

    I have added social sharing buttons (Facebook, Twitter, etc.) after single posts, without a plugin. I created a file social.php with the code for each button, and then added the following to functions.php:

    /** Add Social Sharing Links on Single Posts **/
    add_action('genesis_after_post_content', 'include_social', 9);
    function include_social() {
    if ( is_single() )
    require(CHILD_DIR.'/social.php');
    }

    You could probably tweak that a little to put it above your posts.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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