• 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 Name and Comments from Home 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 Name and Comments from Home page

This topic is: not resolved

Tagged: Author, comments, home page, meta info, News Pro

  • This topic has 6 replies, 3 voices, and was last updated 9 years, 3 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 13, 2013 at 12:06 am #78740
    L00koutM0re
    Member

    Hi, i am using News Pro Theme and want to remove Author and Comments (meta info) from home page only. I used the following code as shared by Brad, it worked awesome but it also removed the date from the home page. I want to keep the Date as it is.

    Do i need another code or some alteration in the following?

    .home .entry-meta {
    display: none;
    }

    http://www.moremag.pk
    December 13, 2013 at 1:34 am #78748
    nutsandbolts
    Member

    You can remove the author and comment links on the homepage by adding a function like this to functions.php:

    add_filter( 'genesis_post_info', 'remove_post_info_home' );
    function remove_post_info_home($post_info) {
    if ( is_home() ) { 
    	$post_info = 'Posted on [post_date] [post_edit]';
    	return $post_info;
    }
       }

    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    December 13, 2013 at 1:50 am #78752
    Brad Dalton
    Participant

    You'll need to use PHP code for that. http://wpsites.net/web-design/modify-post-info-genesis/


    Tutorials for StudioPress Themes.

    December 13, 2013 at 11:40 am #78840
    L00koutM0re
    Member

    Thanks Brad i used your solution and it worked. I found following code to remove author and comment info from home

    .home .entry-comments-link ,
    .home .entry-author{
    display: none;
    }

    December 19, 2013 at 1:58 am #80144
    L00koutM0re
    Member

    Nutsandbolts your code in function.php removes the Author name and comment link from the home page but also it removes them and the date link from the single post as well. How can we keep that information visible on the single post under the title?

    Brad your code worked but i have noticed that it has not removed the word "BY" under the title on home page. Can we remove with the same code?

    December 19, 2013 at 11:45 pm #80403
    Brad Dalton
    Participant

    Yes i know which is why you need to use the PHP code embedded on the post i linked to.

    You’ll need to use PHP code for that. http://wpsites.net/web-design/modify-post-info-genesis/


    Tutorials for StudioPress Themes.

    December 20, 2013 at 12:11 am #80404
    Brad Dalton
    Participant

    I wrote this code for you and tested it so i know it does exactly what you need http://wpsites.net/web-design/remove-author-name-comments-link-in-post-info-on-home-page-only/

    Looks like you have it worked out anyways?


    Tutorials for StudioPress Themes.

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

© 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