• Resolved Ferikes

    (@ferikes)


    Hi,

    I found out how to hide heading on specific pages, so I still have heading visible in posts by using this

    .page-id-XXX .page-header {
    display: none !important;
    }

    where XXX is your page ID. But I can’t figure out how to do the same with category. I am not an coder, so I just tried the obvious:

    .category-id-XXX .page-header {
    display: none !important;
    }

    which didn’t work.

    I also don’t know if I am targeting the category correctly. I see this line in URL: wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=8&post_type=post

    So is the category ID ‘8’?

Viewing 2 replies - 1 through 2 (of 2 total)
  • hannah

    (@hannahritner)

    Hey,
    Yes, the category is 8, but the css class would be a little different. Try using this:

    .category-8 .page-header {
    display: none;
    }

    Does that work for you? If not, can you post a link?

    Hannah

    Thread Starter Ferikes

    (@ferikes)

    You are my personal hero Hannah ??

    It worked like a champ. Thank you very much!

    F.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hiding heading in category’ is closed to new replies.