Hide Post Category Text

  • Posted in : Read WP
  • Loul
    Participant

    How would I hide the ‘Post Category → Category_name’ text?

    Thanks.

    Anonymous
    Inactive

    I also couldn’t find how to remove this text from Category pages. Normally this code is in category.php but there’s nothing like this.

    I want to be able to remove the ‘Post Category → Category_name’ from category pages and possibly add a “selected nav item” rule to them, because Category items on the nav bar don’t get highlighted when they are picked.

    Anonymous
    Inactive

    Ok, Loul I’ve found the answer.

    There are three types of category templates.
    cat-masonry.php
    cat-nosidebar.php
    cat-sidebar.php

    Your website is using one of these formats, for example if you are using masonry type- go to cat-masonry.php and delete the line saying:

    /*
    h1 class=”page-title”> </h1
    */

    This should remove the category title on category pages.

    Anonymous
    Inactive

    But my question still stands:

    How to adda “selected nav item” color rule to category items which are displayed on nav because Category items on the nav bar don’t get highlighted when they are visited.

    ahmetsali
    Keymaster

    Hi, you can use this custom css code to hide the page title on category pages;

    body.category .page-header {
        display: none;
    }
    

    @tochnost
    please provide your url and let’s see if it can be done with some custom css code.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register