Removing Comment Meta Link

Community Forums Forums General Discussion Removing Comment Meta Link

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  braddalton 10 months, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #63036

    lajollamom
    Participant
    Post count: 3

    Hello,

    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.

    Thanks.

    #63044

    braddalton
    Participant
    Post count: 8899

    Did you want tor remove the date and time from your child theme?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #63334

    lajollamom
    Participant
    Post count: 3

    Hi. Just the date and time hyperlink. I’d like to leave the actual date and time in.

    #63339

    braddalton
    Participant
    Post count: 8899

    Link to your site please.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #63692

    lajollamom
    Participant
    Post count: 3

    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!

    #63702

    braddalton
    Participant
    Post count: 8899

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #63852

    lajollamom
    Participant
    Post count: 3

    ?
    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.

    #63858

    braddalton
    Participant
    Post count: 8899

    Functions file. Its actually generated by WordPress so you may want to grab the code from WordPress and place it in the functions file.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.