Genesis 2.0 – Help remove date and time from comments…

Community Forums Forums Design Tips and Tricks Genesis 2.0 – Help remove date and time from comments…

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Forest_Parks 1 year ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #48968

    Forest_Parks
    Participant
    Post count: 1

    I’m using Genesis 2.0 and having a simple issue.

    Below comments it displays comments_date and comments_time with an at between them and then an edit in a comments-meta div.

    I simply want to remove this. I don’t know what hook to modify / filter to correctly do this.

    For now I was able to use these filters however I know it isn’t correct and it leaves the ‘at’ wording which I was able to set to display: none…. However I just want to execute a function that will remove this whole line from a comment.

    //* Modify the author date in comments
    add_filter( ‘get_comment_date’, ‘custom_comment_date’ );
    function custom_comment_date() {
    return ”;
    }

    //* Modify the author time in comments
    add_filter( ‘get_comment_time’, ‘custom_comment_time’ );
    function custom_comment_time() {
    return ”;
    }

    Thanks in advance for your help.

    #49075

    DavidF
    Participant
    Post count: 36

    Hi Forest,

    Have you tried using display:none for the CSS class?

    David


    #49087

    Forest_Parks
    Participant
    Post count: 1

    Hey David, that’s the easy option but of course it still loads and is in the code. Ideally i’d like to either just filter them out (so they don’t load at all) or rewrite the function….

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

You must be logged in to reply to this topic.