• 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

Display Author Box before Comments on a Page

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 › Display Author Box before Comments on a Page

This topic is: resolved

Tagged: author box, genesis_author_box_single, studio pro

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 11 months ago by SEO Expert India.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 2, 2018 at 8:00 am #217214
    Timothy Mayo
    Member

    Hi All,

    Would really appreciate some help on this, it's driving me crazy!

    I have the author box displaying on pages using the following code:

    ==========
    add_action( 'genesis_entry_footer', 'genesis_do_author_box_page' );
    function genesis_do_author_box_page() {
    if ( ! is_page() ) {
    return;
    }
    if ( get_the_author_meta( 'genesis_author_box_single', get_the_author_meta('ID') ) ) {
    genesis_author_box( 'single' );
    }
    }
    ==========

    When comments for the page are disabled this works fine and displays the author box at the bottom of my pages after my social share buttons.

    However, when I enable comments for the page, the author box gets pushed to below the comments. I don't want this to happen. I want it to display directly underneath the social share buttons like it does on posts.

    I've tried using both genesis_entry_content and genesis_entry_footer, but they both still place the author box below the comments.

    You can see an example of what I mean on this page here:

    Sony a7II vs a7III – 12 Key Differences Compared

    And on this post you can see how I'd like it to work:

    A Round-up of Some Early Sony a7 III Hands-On Review Videos

    I'm not a coder, I just hack things until they work. But I can't solve this one.

    Any help would be much appreciated. I'm using the 3rd party theme Studio Pro from SEO Themes.

    Also if anyone knows of a plugin than can be used to enable/disable post info like date and author easily on pages, that would be great! I'm using a workaround for this right now, but it's not ideal.

    Many thanks!
    Tim

    https://www.alphashooters.com/compare/sony-a7ii-vs-a7iii/
    March 2, 2018 at 7:35 pm #217232
    Brad Dalton
    Participant

    Change the Genesis hook and/or 3rd parameter


    Tutorials for StudioPress Themes.

    March 2, 2018 at 11:56 pm #217242
    SEO Expert India
    Member

    Thanks Braddalto !

    I have changed the the Genesis hook but still facing the same issue.


    SEO expert just what you needed –
    http://seoexpertindia.net/

    March 3, 2018 at 5:46 am #217248
    Timothy Mayo
    Member

    Great thanks Brad. I changed the hook to genesis_before_comments and this did the trick.

    Here's the code for anyone who wants to add an author box to pages and have it appear before the comments. It also still displays correctly on pages where I don't have comments turned on.

    ========
    // Add the author box on single pages before comments.
    add_action( 'genesis_before_comments', 'genesis_do_author_box_page' );
    function genesis_do_author_box_page() {
    if ( ! is_page() ) {
    return;
    }
    if ( get_the_author_meta( 'genesis_author_box_single', get_the_author_meta('ID') ) ) {
    genesis_author_box( 'single' );
    }
    }
    =======

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Display Author Box before Comments on a Page’ is closed to new 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