Forum Replies Created
-
AuthorPosts
-
RegevParticipant
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
RegevParticipantThanks 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
RegevParticipantI 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( '• ' ), '' ); ?> </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?
RegevParticipant0_0
is that html5 or xhtml?
thanks a lot darcy, really appreciate the time and effort
RegevParticipantThanks 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?
RegevParticipantI'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 ? #125329RegevParticipantPerhaps 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
-
AuthorPosts