• 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

BrandonPDuncan

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 9, 2023 at 1:50 am in reply to: Reposition Single Post (Page Break) Pagination Directly Under Content #507205
    BrandonPDuncan
    Participant

    Well, it certainly isn't pretty, but it works.

    Snippet:

    // Coding to Re-order Jetpack Sharing Buttons, Likes, and Related Posts.
    add_action( 'genesis_before_entry_content', 'reposition_jetpack_sharing_buttons' );
    add_action( 'genesis_entry_footer', 'reposition_jetpack_sharing_buttons' );
    add_action( 'genesis_entry_footer', 'reposition_jetpack_likes' );
    add_action( 'genesis_entry_footer', 'reposition_Jetpack_RelatedPosts' );

    function reposition_jetpack_sharing_buttons(){
    remove_filter( 'the_excerpt', 'sharing_display', 19 );
    remove_filter( 'the_content', 'sharing_display', 19 );
    if ( class_exists( 'Jetpack_Likes' ) ) {remove_filter( 'the_content', array( Jetpack_Likes::init(),'post_likes' ),30, 1 );
    }
    if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
    $jprp = Jetpack_RelatedPosts::init();
    $callback = array( $jprp, 'filter_add_target_to_dom' );
    remove_filter( 'the_content', $callback, 40 );
    }

    if ( function_exists( 'sharing_display' ) ) {
    echo sharing_display();
    }
    }

    function reposition_jetpack_likes() {
    if ( class_exists( 'Jetpack_Likes' ) ) {$custom_likes = new Jetpack_Likes;
    echo $custom_likes->post_likes( '' );
    }
    }

    function reposition_Jetpack_RelatedPosts() {
    if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
    echo do_shortcode( '[jetpack-related-posts]' );
    }
    }

    Site:

    Top
    Bottom

    April 8, 2023 at 11:45 pm in reply to: Reposition Single Post (Page Break) Pagination Directly Under Content #507202
    BrandonPDuncan
    Participant

    Sir, good call. I disabled the GSH Plugin and changed the hook for the sharing buttons to "genesis_before_entry" and it worked (no duplication).

    Ok, I will try to find the functions to do same thing for the Jetpack "Like" and "Related Posts".

    I am curious, since I did not have to add any code to do the entry_pagination (I have not added single post navigation yet---I am only working with native wordpress breaking posts into multiple pages), how would I go about hooking them to a different location?

    Can I theoretically use the "single post nav" code and just change the function to "entry_navigation"? I wouldn't think the page breaks are a Genesis thing, but wordpress...

    Thanks for the help. I appreciate it.

    April 8, 2023 at 3:24 pm in reply to: Reposition Single Post (Page Break) Pagination Directly Under Content #507200
    BrandonPDuncan
    Participant

    As for moving Jetpack, the code provided for this adds a second row of share buttons only. I can put them wherever, hook-wise, but it doesn't move or remove the original placement, therefore the entry_pagination is still stuck under everything.

    Screengrab of positioning

    April 8, 2023 at 3:10 pm in reply to: Reposition Single Post (Page Break) Pagination Directly Under Content #507199
    BrandonPDuncan
    Participant

    Sorry, I'm stationed in S. Korea. Big time zone difference.

    I started with the instructions in this post here: https://studiopress.community/topic/pagination-exclusion-and-positioning/

    That post links to your tutorials:
    1. https://wpsites.net/genesis-tutorials/reposition-or-modify-genesis-single-post-navigation/

    I attempted to copy/paste the reposition code block into my child theme Functions.php - no result. I installed Genesis Simple Hooks, but I have no clue what piece to place in the after content hook.

    I want to say I did this on a site years ago, but a lot has changed in the Genesis code since then... and i'm rusty...

    April 8, 2023 at 6:20 am in reply to: Reposition Single Post (Page Break) Pagination Directly Under Content #507194
    BrandonPDuncan
    Participant

    Hello, Brad. I did not add any code to get the entry-pagination to work, so I really do not know what code to add in Genesis Simple Hooks. I tried a block of code from a tutorial you pointed to here on the forum and nothing happened.

    As for repositioning Jetpack, I haven't tried, but I will let you know.

    September 5, 2013 at 5:47 am in reply to: Custom Post Types by Taxonomy #60806
    BrandonPDuncan
    Participant

    Sorry, the site is http://dadsroundtable.com/writeontheroad. There's nothing really there yet, however. I'm just starting the structure.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

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