• 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

Regev

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 61 through 67 (of 67 total)
← 1 2 3 4
  • Author
    Posts
  • September 26, 2014 at 3:01 am in reply to: How to Unlink Comment Date and Remove Time? #125790
    Regev
    Participant

    YOU ROCK MARCY !!!!

    Working perfectly, you have no idea how thankful I am.

    Is there a way to incorporate the following code into this snippet to make the it more organised?

    //* Modify the size of the Gravatar in the entry comments
    add_filter( 'genesis_comment_list_args', 'mobile_first_comments_gravatar' );
    function mobile_first_comments_gravatar( $args ) {
    
    	$args['avatar_size'] = 96;
    	return $args;
    
    }

    I also noticed that changing the avatar size doesn't change its size but its 'resolution' - when I set it on 48 the gravatar becomes blurred, whys that

    September 25, 2014 at 5:24 pm in reply to: How to Unlink Comment Date and Remove Time? #125735
    Regev
    Participant

    Thanks Darcy, I tried to use the code you provided but it doesn't work. It simply 'unlinks' the comment time - but still links the comment date and still shows the time.

    The code I put above does work - it only shows an unlinked comment date and nothing else. But the comment 'content' doesn't begin nicely from a clean spot but from one line below the date, which looks very strange. Look at this screenshot to see what I mean.

    Any Idea what I should change?

    Thanks again, you're beyond awesome

    September 25, 2014 at 9:36 am in reply to: How to Unlink Comment Date and Remove Time? #125674
    Regev
    Participant

    I managed to remove the comment date and the link through this code that I found and edited a little bit:

    // First remove the genesis_default_list_comments function
    remove_action( 'genesis_list_comments', 'genesis_default_list_comments' );
     
    // Now add our own and specify our custom callback
    add_action( 'genesis_list_comments', 'child_default_list_comments' );
    function child_default_list_comments() {
     
        $args = array(
            'type'          => 'comment',
            'avatar_size'   => 54,
            'callback'      => 'child_comment_callback',
        );
     
        $args = apply_filters( 'genesis_comment_list_args', $args );
     
        wp_list_comments( $args );
     
    }
     
    // This is where you customize the HTML output
    function child_comment_callback( $comment, $args, $depth ) {
     
        $GLOBALS['comment'] = $comment; ?>
     
        <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
             
            <?php do_action( 'genesis_before_comment' ); ?>
             
            <div class="comment-left">
     
                <div class="comment-author vcard">
                    <?php echo get_avatar( $comment, $size = $args['avatar_size'] ); ?>
                    <?php printf( __( '<cite class="fn">%s</cite> <span class="says">%s</span>', 'genesis' ), get_comment_author_link(), apply_filters( 'comment_author_says_text', __( '', 'genesis' ) ) ); ?>
                </div><!-- end .comment-author -->
         
                <div class="comment-meta commentmetadata">
    <?php printf( __( '%1$s', 'genesis' ), get_comment_date()); ?>
                    <?php edit_comment_link( __( 'Edit', 'genesis' ), g_ent( '&bull; ' ), '' ); ?>
                </div><!-- end .comment-meta -->
                 
            </div>
             
            <div class="comment-right">   
         
                <div class="comment-content">
                    <?php if ($comment->comment_approved == '0') : ?>
                        <p class="alert"><?php echo apply_filters( 'genesis_comment_awaiting_moderation', __( 'Your comment is awaiting moderation.', 'genesis' ) ); ?></p>
                    <?php endif; ?>
         
                    <?php comment_text(); ?>
                </div><!-- end .comment-content -->
         
                <div class="reply">
                    <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
                </div>
                 
            </div>    
     
            <?php do_action( 'genesis_after_comment' );
     
        /** No ending </li> tag because of comment threading */
     
    }

    but the comment content begins a line or two earlier and it looks very strange. Here's a screenshot. Any idea what in the code might be causing that?

    Also, what are those <div class="comment-right"> and <div class="comment-left"> ? i don't see any right and left columns in the comments so am i missing something?

    September 22, 2014 at 4:33 pm in reply to: How to Unlink Comment Date and Remove Time? #125381
    Regev
    Participant

    0_0

    is that html5 or xhtml?

    thanks a lot darcy, really appreciate the time and effort

    September 22, 2014 at 3:06 pm in reply to: How to Unlink Comment Date and Remove Time? #125363
    Regev
    Participant

    Thanks Marcy! but he doesn't talk about removing that link though, there must be an easier way to do both at once

    or perhaps.. if i just go the easy CSS route to remove both the date and time - is there an easy way to just add the date manually somehow, perhaps through a short function snippet?

    September 22, 2014 at 12:21 pm in reply to: How to Unlink Comment Date and Remove Time? #125343
    Regev
    Participant

    I'm talking about the linked date in the comments (not the post itself)

    September 22, 2014 at 10:57 am in reply to: Sixteen Nine Pro stylesheet changes not applying after save ? #125329
    Regev
    Participant

    Perhaps a caching plugins is working in the background? I always disable W3 Total Cache when I make changes, otherwise it takes emptying the cache and a few refreshes for the changes to take effect

  • Author
    Posts
Viewing 7 posts - 61 through 67 (of 67 total)
← 1 2 3 4
« Previous Page

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