Hiding Comment Date and Time Stamp

  • Ruthida

    #8731

    Could someone kindly show me how to hide the dates and time stamps on my blog comments?

    I have been able to hide the blog post date and time stamps but not for comments.

    Thank you!

    Anonymous

    #42014

    Hy,

    This is tricky. For me off course 😉

    You can hide commentmetadata class with CSS, but that will hide the “spam” and “delete” links also. If you want to remove only date and time from comments I think you’ll have to edit theme-comments.php in includes folder under main theme options. But that modification will be lost during next theme upgrade so this isn’t preferred solution.

    Let’s try with this in your child-theme style.css:

    .comment-delete-link {
    visibility:visible;
    }
    .comment-spam-link {
    visibility:visible;
    }
    .comment-edit-link {
    visibility:visible;
    }
    .comment-permalink {
    visibility:visible;
    }
    .commentmetadata {
    visibility:hidden;
    }
    .comment-meta {
    left:-160px;
    }
    .comment-reply-link {
    left:115%;
    }

    You can play with positioning to adjust it to your site.

    Off course, maybe there is some better solution for this, but I don’t know it now 🙂

    Ruthida

    #42015

    Thank you Luko, still figuring out how to get to the child theme style css. however, i am still wondering if it’s still worth it after the down sides you mentioned. 🙂

    Anonymous

    #42016

    It’s worth it if you use child-theme or you add this code in your Graphene Options/Display/Custom CSS.

    I think that Prasanna have ready made Graphene Child theme on his site:

    Graphene Child theme

    Download and install as any other theme and than put your code in child-theme style.css.

    If you do like that, you can upgrade main theme any time without loosing any changes.

    Ruthida

    #42017

    Hey Luko

    You are a genius! The code in CSS worked for me. I pasted it in the Custom CSS. I didnt down load the Prasanna file.

    Thank you so much!

    -Ruthida.

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

  • You must be logged in to reply to this topic.