• 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

Remove Author box from blog exerts and author excerpts 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 › Remove Author box from blog exerts and author excerpts page

This topic is: not resolved

Tagged: excerpts

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 8 months ago by sportydave.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 4, 2017 at 8:04 pm #211105
    sportydave
    Participant

    I want my author box to appear at the top of the author archive page and at the bottom of each individual article.

    At the moment, the author box does that but it also shows after every excerpt in my archive and main blog excerpts pages.

    David


    Kind Regards,
    David Trounce

    https://malleeblue.com/mbmstaging/web-marketing-ideas-for-small-business/
    September 6, 2017 at 6:00 am #211145
    Victor Font
    Moderator

    I've used the Epik theme on several sites and the author box does not display on archive pages by default. This means your theme has been customized to display the author box on archive pages. Look for the following line of code in functions.php and remove it:

    add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' );

    If you can't find this in functions.php, it can be located almost anywhere in a file loaded by functions.php or in the archive template itself. Since this is a customization, I can't help you further. I can only point you in the direction of what to look for.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 6, 2017 at 6:46 pm #211168
    sportydave
    Participant

    Hey Victor, thanks for your help. I can't see that you provided line in my .php - However, I did modify the author box to add social icons.

    Here is the line of code I think is relevant (and I wonder if this is what is causing the author box to appear in the excerpts).

    remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 ); // Remove default Genesis Author Box
    add_action( 'genesis_after_entry', 'rv_theme_author_box', 8 ); // Do custom author box instead
    function rv_theme_author_box() { ?>

    Does this shed light on the issue and indicate how I might get rid of the AB on archive excerpt pages?

    DAvid


    Kind Regards,
    David Trounce

  • 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

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