Hide Category names from Post Meta
-
I want to hide a specific category from displaying in the post meta area of my theme theme. This blog post described my intention perfectly: https://basicwp.com/hide-category-post-meta-wordpress/
Do you want to hide or remove a specific category from displaying in the post meta area of a WordPress theme? By default, we can either remove or hide all categories or display all categories assigned to a specific post. Since, each category does not have unique CSS class, we can not use display:none; function to target a specific category.
I followed the instructions and I’m already running a Child Theme, so I put the code into the functions.php page. But nothing happened—it didn’t fix it.
(I’m using Yoast, and it’s the secondary category that I want to hide. But I still want to display the primary category. But I don’t think this is actually a Yoast problem, hence why I didn’t post in the Plugin forum)
I’m using a theme called Paperio that I purchased from Envato.
The page I need help with: [log in to see the link]
- The topic ‘Hide Category names from Post Meta’ is closed to new replies.