• 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

How to remove comment dates

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 › How to remove comment dates

This topic is: not resolved

Tagged: comment metadata, Daily Dish, shortcode, simple edits

  • This topic has 6 replies, 4 voices, and was last updated 10 years, 2 months ago by Carlo.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 15, 2015 at 5:09 pm #137604
    JenniferNM
    Member

    I've done this before, but can't remember how. 🙂

    I'm using the Daily Dish theme and also have Simple Edits installed.

    I used Simple Edits to delete the date for posts and now I'd like to remove the dates for comments, since some of my posts are very old, but still relevant.

    What shortcode could I add to Simple Edits?

    Or is there code I could add in the Editor? The suggestions I've seen posted online for editing the stylesheet or functions page don't match what I see in my theme.

    Thanks!

    Cheers,
    Jennifer

    http://www.mendingthenest.com
    January 15, 2015 at 6:11 pm #137607
    Abland
    Member

    How about this in your style rules?

    p.comment-meta .comment-time {
    display: none;
    }

    January 15, 2015 at 7:58 pm #137610
    JenniferNM
    Member

    Thanks for the suggestion, Abland. Tried that, but it didn't work. It also didn't look like anything else in the comments section.

    /* Comments
    --------------------------------------------- */

    .comment-respond,
    .entry-comments,
    .entry-pings {
    margin-bottom: 40px;
    }

    .comment-header {
    font-size: 16px;
    }

    li.comment {
    background-color: #f5f5f5;
    border: 2px solid #fff;
    border-right: none;
    }

    .comment-content {
    clear: both;
    }

    .comment-list li {
    margin-top: 24px;
    padding: 32px;
    }

    .comment-list li li {
    margin-right: -32px;
    }

    .comment-respond input[type="email"],
    .comment-respond input[type="text"],
    .comment-respond input[type="url"] {
    width: 50%;
    }

    .comment-respond label {
    display: block;
    margin-right: 12px;
    }

    .entry-comments .comment-author {
    margin-bottom: 0;
    }

    .entry-pings .reply {
    display: none;
    }

    .bypostauthor {
    }

    January 16, 2015 at 1:32 pm #137694
    Ren Ventura
    Member

    Hide the entire comment-meta element.

    .comment-meta {
    	display: none;
    }
    

    That should work but, if it doesn't for some reason, add the !important declaration, like so:

    .comment-meta {
    	display: none !important;
    }
    

    Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren

    January 30, 2015 at 12:51 pm #139069
    JenniferNM
    Member

    Thank you, Ren - I'll try that and report back! Cheers. 🙂

    January 30, 2015 at 4:46 pm #139089
    Carlo
    Member

    Hi Jennifer. Using display: none; is not a very good solution because the dates will still be there in the source code.

    Instead, I've prepared some code that you can add to your theme functions to properly remove the dates.

    function jennifer_comment_callback( $comment, array $args, $depth ) {
    	ob_start();
    	genesis_html5_comment_callback( $comment, $args, $depth );
    	$all_content = ob_get_clean();
    
    	ob_start();
    	?><p <?php echo genesis_attr( 'comment-meta' ); ?>>
    				<?php
    				printf( '<time %s>', genesis_attr( 'comment-time' ) );
    				printf( '<a href="%s" %s>', esc_url( get_comment_link( $comment->comment_ID ) ), genesis_attr( 'comment-time-link' ) );
    				echo    esc_html( get_comment_date() ) . ' ' . __( 'at', 'genesis' ) . ' ' . esc_html( get_comment_time() );
    				echo    '</a></time>';
    
    				edit_comment_link( __( '(Edit)', 'genesis' ), ' ' );
    				?>
    			</p><?php
    	$content_to_remove = ob_get_clean();
    
    	echo str_replace( $content_to_remove, '', $all_content );
    }
    
    add_filter( 'genesis_comment_list_args', function( $defaults ) {
    	$defaults[ 'callback' ] = 'jennifer_comment_callback';
    	return $defaults;
    } );

    Let me know if that works.


    Comprehensive, easy to follow Genesis documentation

    March 24, 2015 at 1:50 am #145425
    Carlo
    Member

    I recently published a tutorial on this topic:
    http://carlomanf.id.au/remove-comment-dates/

    There will be a filter for this in Genesis 2.2.


    Comprehensive, easy to follow Genesis documentation

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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

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