I’m trying to hide “Category:” in my headers. For example, I want “Category: Articles” to just read “Articles”.
Do I nee a jquery/css combination, or do I edit the php files? I don’t know how to to that with this code:
Thank you for submitting a question about removing the “Category:” identifier. Yes, this can likely be scripted via a Javascript modification, but depending on your comfort level with PHP, you can edit the category template file and remove that. We recommend creating a child theme first and editing only the child theme files, otherwise your custom changes will be wiped out after a theme upgrade.
Update: One of our developers was able to shed some light on the issue and provide a helpful CSS code snippet you can use in the CSS Editor in the Customizer.
You don’t paste it into a file. You just need to login to your WordPress site, click on Customizer (Administrator > Customize). When you are in the customizer, click on Advanced, then Custom JS & CSS. You will see two fields for the CSS. Paste the code snippet in that section and then click on Publish to save your changes. Changes made in this section will not be removed by an update to the theme.
The “Category:” phrase will obey the language you select in the Settings > General menu, so in order to switch to Chinese, you can change your entire site to use the language, and that will automatically change.
Author
Posts
Viewing 7 posts - 1 through 7 (of 7 total)
The topic ‘Is there anyway to hide “Category:” in the header of a given category page?’ is closed to new replies.