Removing date on Triton Lite theme
-
Hello,
I would like to remove the date on some posts (not all) from a Triton Lite theme. I’ve just upgraded it to Premium, but I don’t know how the CSS works yet, so please give details on how to proceed.
Thanks!!!
The blog is http://www.spanskultur.com
The blog I need help with is: (visible only to logged in users)
-
Which posts would you like to remove the dates from? And do you mean on the main page where the dates appear when you hover over a post or on the single post view where it appears below the post title (or both)?
Posts with a particular category or tag would be easy to do, the code to hide them would be either like this:
.category-nyheter .date-meta { display:none; }or:
.single .tag-leire-mesa .entry-date { display:none; }The first example is for a category on the main page, the second for a tag on the single-view pages.
You could also hide them on a post by post basis but you’d have to update your CSS each time you publish a new post that you want to hide which is a bit of a pain. This is done using the post’s unique ID number which can be found by using the browser inspector. Here are two examples similar to those above:
.post-425 .entry-date { display:none; } .postid-345 .entry-date { display:none; } -
hi hallluke! thank you for your quick response!
if I could hide the date of posts with a particular category (the first example you give me), it would be great!
I have tried inserting the CSS code just like that and then clicked “save”, but nothing changes.
Like this:
.category-KULTURELLA EVENEMANG .date-meta {
display:none;
}Am I doing anything wrong?
-
The only thing is that the spaces are replaced with dashes so it would look like this instead:
category-kulturella-evenemang .date-meta { display:none; } -
- The topic ‘Removing date on Triton Lite theme’ is closed to new replies.