• Resolved dfbx

    (@dfbx)


    Hi,
    Need some help and I can’t find it on here. I would like to hide the dates only on posts in certain categories. Is there a way to do this in the theme? If so, where.

    I tried adding the following:

    .category-(CATEGORYNAME) .posted-date {
    display:none}

    To my CSS, but it has not worked.

    I’m not great at CSS, I am hoping however you can give me some simple instructions to remove the date by category.

    Thanks,

    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author acosmin

    (@acosmin)

    You could try:

    .post-template-1.category-economy .index-post-date { display: none !important }

    Where for example “economy” is your category name. If the category has spaces between words add – instead.

    Thread Starter dfbx

    (@dfbx)

    Thanks, that helped remove the date when posts show up on the category pages.

    I was hoping it would actually remove the date from the posts completely. Is there a way to do that on a post-by-post basis, since I want to have dates on some, but not all posts.

    Either way, thanks again!

    Theme Author acosmin

    (@acosmin)

    With css you can do somehing like:

    .post-34.category-economy .index-post-date,
    .post-12.category-economy .index-post-date,
    .post-32.category-economy .index-post-date
    { display: none !important }

    Where 34, 12, 32 are your post’s ids. To find the ids check this topic out

    Thread Starter dfbx

    (@dfbx)

    Thanks, that works for me!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘hide date on certain categories only’ is closed to new replies.