In the Genesis parent theme, there's a comment.php file with the following
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php printf( __( '%1$s at %2$s', 'genesis' ), get_comment_date(), get_comment_time() ); ?></a>
I'd like to actually remove that. I'm using the Metro child theme that does not already contain a comments.php file. What do I add in the Child theme to remove the link from displaying? I'd like to avoid removing that link from the main Genesis theme.
Did you want tor remove the date and time from your child theme?
Hi. Just the date and time hyperlink. I'd like to leave the actual date and time in.
Link to your site please.
Hi. It's http://lajollamom.com. The link has been temporarily removed but during the next Genesis update, it will likely get reinserted. By removing the link I've been able to drastically speed up load time on pages with a lot of comments. Thanks!
Why don't you put that code in your child theme and remove the code from it which creates the hyperlink. That way your modifications won't be lost when you update Genesis.
That's exactly what I'm trying to do.
Where in the child theme do I put that code? The child theme is metro. There is no comments.php.
Functions file. Its actually generated by WordPress so you may want to grab the code from WordPress and place it in the functions file.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!