• 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

Adding Jetpack buttons Above/below post – Convert code to html5

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 › Adding Jetpack buttons Above/below post – Convert code to html5

This topic is: resolved

Tagged: convert, html, jetpack

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 11 months ago by lemonandolives.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 17, 2014 at 9:50 am #95305
    lemonandolives
    Member

    Found code below on the genesis site: http://my.studiopress.com/tutorials/jetpack-sharing-buttons/

    However, my site runs html5 and this isn't working. I'm not too savvy, what do I need to change to convert it to html5 so it will work?

    Thanks!!

    //* Add Jetpack share buttons above post
    remove_filter( 'the_content', 'sharing_display', 19 );
    remove_filter( 'the_excerpt', 'sharing_display', 19 );

    add_filter( 'the_content', 'sp_share_buttons_above_post', 19 );
    add_filter( 'the_excerpt', 'sp_share_buttons_above_post', 19 );

    function sp_share_buttons_above_post( $content = '' ) {
    if ( function_exists( 'sharing_display' ) ) {
    return sharing_display() . $content;
    }
    else {
    return $content;
    }
    }

    March 17, 2014 at 10:18 am #95313
    Brad Dalton
    Participant

    Where did you paste the code?

    I've never found any SP code to not work.

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    https://gist.github.com/studiopress/5750621


    Tutorials for StudioPress Themes.

    March 17, 2014 at 12:01 pm #95335
    lemonandolives
    Member

    I must have been doing it wrong..

    I followed your instruction and it woked!

    Thanks, Brad!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 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