Hiding Comment Date and Time Stamp
-
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 🙂
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:
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.
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.