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

Community Forums Forums Design Tips and Tricks Add Mashable style Share Button at the Top of Posts Pages?

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Susan 1 year, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6539

    Imxproducts
    Participant
    Post count: 4

    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.

    #6540

    Susan
    Moderator
    Post count: 7977

    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



    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #6546

    Imxproducts
    Participant
    Post count: 4

    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?

     

    #6556

    Susan
    Moderator
    Post count: 7977

    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.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

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

You must be logged in to reply to this topic.