• 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

No Sidebar Pro – Remove blog post info

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 › No Sidebar Pro – Remove blog post info

This topic is: not resolved

Tagged: no post info

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 7 months ago by Chrisrx.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 7, 2016 at 8:44 am #195825
    Chrisrx
    Member

    Hi

    How would i remove blog post info for the front page, as i have find this

    add_filter( 'genesis_post_info', 'remove_post_info_multiple_pages' );
    /**
    * @author Brad Dalton
    * @learn more http://wp.me/p1lTu0-9Vj
    */
    function remove_post_info_multiple_pages($post_info) {
    if (is_page(array('11469', '11440'))) {
    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;

    }

    But this list's the pages and not sure what page is being used for the front page as it is not using a page i have created.

    Any help would be appreciated.

    Regards

    Chris

    http://www.roxhar.com
    November 7, 2016 at 12:17 pm #195836
    William
    Member

    Chris not too sure if I understood you correctly,

    #1 - The id of any WordPress page can be found in the opening <body> tag

    #2 - If you are targeting the front-page, use the is_front_page(); conditional

    Hope it helps !


    Genesis Customization Service | Quick fixes whenever you need them ! | Contact me at Fixmysite.com !

    November 8, 2016 at 10:51 am #195907
    Chrisrx
    Member

    That is correct, i am looking to remove the blog post information from the front page only, i can not see the page id in the opening <body> tag.

    How would i use is_front_page(); to remove post date from just this page, apologies if these are simple questions, i am quite new to genesis.

    Regards

    Chris

    November 8, 2016 at 11:36 am #195909
    William
    Member

    like this:

    add_filter( 'genesis_post_info', 'remove_post_info_multiple_pages' );
    function remove_post_info_multiple_pages($post_info) {
    if (  is_front_page()  ) {
    
    // your code here...
    
    }

    🙂


    Genesis Customization Service | Quick fixes whenever you need them ! | Contact me at Fixmysite.com !

    November 9, 2016 at 6:04 am #195933
    Chrisrx
    Member

    Thanks for your help William,

    what is the // your code here..., i have tried adding the code to my functions php, but get a blank screen, so not sure where i should be placing this.

    Regards

    Chris

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 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