• 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

How to Add Jetpack Share Buttons to Post Info and Post Meta Areas?

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 › How to Add Jetpack Share Buttons to Post Info and Post Meta Areas?

This topic is: not resolved

Tagged: .post-info, jetpack, post meta, share, share button, sharing

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 4 months ago by Marco.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 24, 2013 at 10:03 am #42490
    rbickett
    Participant

    I am using the Jetpack Share Buttons on my site. Instead of placing these above and below the content, I'd like to add them to the Post Info and Post Meta Areas within the Epik child theme (I'll float them to the right via CSS). I am using the Customize the post info function and the Customize the post meta function as well as the Add Jetpack share buttons above post code as shown below. I am curious how I can customize this so that the Jetpack Share Buttons appeear in the Post Info and Post Meta areas?

    `// Customize the post info function
    add_filter( 'genesis_post_info', 'post_info_filter', 'sharing_display', 19 );
    function post_info_filter($post_info) {
    if ( !is_page() ) {
    $post_info = 'by [post_author_posts_link]';
    return $post_info;
    }}`

    `// Customize the post meta function
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]';
    return $post_meta;
    }}`

    `// Add Jetpack share buttons above post
    remove_filter( 'the_content', 'sharing_display', 19 );
    remove_filter( 'the_excerpt', 'sharing_display', 19 );
    add_filter( 'the_content', 'share_buttons_above_post', 19 );
    add_filter( 'the_excerpt', 'share_buttons_above_post', 19 );
    function share_buttons_above_post( $content = '' ) {
    if ( function_exists( 'sharing_display' ) ) {
    return sharing_display() . $content;
    }
    else {
    return $content;
    }
    }`

    http://www.eminencemedia.co
    May 24, 2013 at 6:30 pm #42532
    Brad Dalton
    Participant

    Try this http://www.briangardner.com/code/add-share-buttons-above-post/

    I used to use Jetpack share also and used a plugin to display them in the post info position.

    But i found they didn't work properly and now use Flare.


    Tutorials for StudioPress Themes & WooCommerce.

    June 3, 2013 at 1:58 am #43774
    Marco
    Member
    This reply has been marked as private.
  • 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

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