Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23104

    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,
    Thomas

    #23108

    Hello 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.

    #23107

    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.

    #23106

    Couple questions:

    1. Which CSS file do I paste into?
    2. Do I paste into the end of the file?
    #23105
    Arnel C
    Member

    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.

    #34814
    Junyi Zhao
    Guest

    Hi, This works well in English. However, not works in another language. Any suggestions for the Chinese word?

    #34820
    Jesse Owens
    Keymaster

    Hello 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.

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.