• 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

Genesis Sample Question About Removing Meta Data Above Content On Archive Pages

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 › General Discussion › Genesis Sample Question About Removing Meta Data Above Content On Archive Pages

This topic is: resolved
  • This topic has 4 replies, 3 voices, and was last updated 3 years, 7 months ago by aprilpm.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 30, 2020 at 10:26 am #496311
    aprilpm
    Participant

    Hello,
    I have placed an affiliate disclaimer above my content on all my posts, and I don't want this disclaimer to show up in the post summary on archive pages.Is there a way to remove it? Hope this is the right place for this question.

    Thanks in advance
    April

    January 30, 2020 at 8:56 pm #496322
    Anita
    Keymaster

    We need to see a link to a page to see the implementation to be able to answer that.


    Love coffee, chocolate and my Bella!

    January 31, 2020 at 7:45 am #496331
    aprilpm
    Participant

    Hello.
    This is my homepage where I have my blogs showing up.
    http://indieauthorcentral.com/
    I put the disclaimer at the top before the posts begin, but I don't want the disclaimers to show up on the archive pages, just the actual post pages.
    Hope that helps.
    TIA
    April

    January 31, 2020 at 11:33 am #496336
    Str3lla
    Member

    I suppose that you are using the Entry Meta Box in the Customizer to put the disclaimer before the post content.
    If this is the case you can try with the genesis_post_info filter.

    //* Customize the entry meta in the entry header 
    add_filter( 'genesis_post_info', 'my_custom_post_info' );
    function my_custom_post_info( $post_info ) {
    	
    	if( ! is_singular( 'post' ) ) {
    		
    		$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    	
    	} 
    		
    	return $post_info;
    	
    }
    

    This way, the default Post Info will appear only on single posts.

    The Genesis Sample After Entry Widget Area may be a better alternative, but the disclosure text will appear after the Post Content. Give it a try!

    A third alternative may be a custom widget area.

    January 31, 2020 at 11:51 am #496337
    aprilpm
    Participant

    Thank you so much, I inserted the code and that worked perfectly.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Genesis Sample Question About Removing Meta Data Above Content On Archive Pages’ 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

© 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