- AuthorPosts
- January 22, 2018 at 2:23 pm #23104Anonymous UserMember
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:<header class=”page-header“><p class=”h1 page-title“>Category: Articles</p></header>
Thanks,
ThomasJanuary 23, 2018 at 10:30 am #23108Christopher MMemberHello Thomas,
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.
Best,
Christopher M.
January 23, 2018 at 4:40 pm #23107Christopher MMemberUpdate: 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.
June 21, 2018 at 5:26 am #23106chrisdelcaminoMemberCouple questions:
- Which CSS file do I paste into?
- Do I paste into the end of the file?
June 21, 2018 at 3:42 pm #23105Arnel CMemberYou 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.
March 9, 2021 at 6:17 pm #34814Junyi ZhaoGuestHi, This works well in English. However, not works in another language. Any suggestions for the Chinese word?
March 9, 2021 at 6:24 pm #34820Jesse OwensKeymasterHello Junyi-
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.
- AuthorPosts
- The topic ‘Is there anyway to hide “Category:” in the header of a given category page?’ is closed to new replies.