If your theme uses the body_class()
function on your <body>
tag, you should have classes like single-badges
and single-{$achievement_type_slug}
on the body tag that you can use to selectively target with CSS.
If your body tag does not have any, it’d be simple to add. Just find where it’s provided, usually header.php, and change it to <body <?php body_class(); ?>>
. WordPress will take care of the rest for you.
Thank you for the help Michael. That was exactly the direction that I needed to be pushed into.
Glad that will get you to where you need to be 🙂
(@cmock13)
9 years, 8 months ago
I am trying to modify the css on my quest page (an achievement type) without changing the formatting on my posts. Specifically, I am trying to remove the comments, author, and date on each quest.
How do I remove these elements with CSS without overriding the settings on my posts and pages (I want comments on posts)?
Thank you in advance.
https://wordpress.org/plugins/badgeos/