Home / Forums / WoodMart support forum / Hide Comments status (format metadata) on blog posts
Home › Forums › WoodMart support forum › Hide Comments status (format metadata) on blog posts
Hide Comments status (format metadata) on blog posts
- This topic has 7 replies, 2 voices, and was last updated 1 year, 3 months ago by
Hung Pham.
-
AuthorPosts
-
March 4, 2025 at 3:39 pm #642701
churchworksParticipantHello, a few months ago, Woodmart updated how the metadata appears at the top of blog posts. This is not a very polished look, in my opinion. Are there CSS hooks that I can play with to format this better? (see attached screenshot)
At the very least, I would like to hide the Comments status (“Comments Off”) from the top metadata on all posts.
Thanks!
Attachments:
You must be logged in to view attached files.March 5, 2025 at 11:07 am #642902
Hung PhamParticipantHi churchworks,
Thanks for reaching to us.
1. Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
.single-post .wd-meta-reply{ display: none; } :is(.wd-single-post-header,.post-title-large-image) .wd-post-meta { --wd-link-color: var(--color-gray-400); --wd-link-color-hover: var(--color-gray-500); display: flex; flex-direction: column; align-items: var(--wd-align); /* Changed from center to use the variable */ gap: 10px; color: var(--color-gray-400); } .wd-meta-author { display: flex; align-items: center; gap: 5px; color: var(--color-gray-400); }2. Remove
OnPlease add the below Custom CSS code to Theme Settings > Custom JS:
$(document).ready(function() { // Find the wd-meta-date div and remove "On" from its text $('.wd-meta-date').each(function() { let currentText = $(this).text().trim(); let newText = currentText.replace('On ', ''); $(this).text(newText); }); });Regards,
March 27, 2025 at 2:31 pm #649559
churchworksParticipantHello, thank you for the code! The custom CSS worked. Nice!
The custom JS, however, did not work to remove “On” before the date. (see screenshot)Attachments:
You must be logged in to view attached files.March 28, 2025 at 7:38 am #649736
Hung PhamParticipantHi churchworks,
To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.
Regards,
April 1, 2025 at 5:27 pm #650889
churchworksParticipantTemp admin login credentials added to private content. Thanks.
April 2, 2025 at 8:51 am #651007
Hung PhamParticipantHi churchworks,
Please double check your site.
Regards,
April 3, 2025 at 3:23 pm #651479
churchworksParticipantHi, the date still shows “On [date]” for the blog posts, but I’ve decided I don’t mind. 🙂
We can call this resolved. Thank you!April 3, 2025 at 3:25 pm #651484
Hung PhamParticipantHi churchworks,
Somehow it didn’t save the code. Please remove above JS code and use below one and put in
On readysection:I tested on my local and it worked.
// Find the wd-meta-date div and remove "On" from its text jQuery('.wd-meta-date').each(function() { let currentText = jQuery(this).text().trim(); let newText = currentText.replace('On ', ''); jQuery(this).text(newText); });Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register