• [ Moderator note: moved to Fixing WordPress. ]

    I’ve created two different post pages by using categories, so the pages that are titled News and Blog are both showing a title like the following that I want hidden:

    “Category: News”

    I’ve read through other posts but none of the solutions work for me. Thank you.

    http://bobcheevers.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • This little snippet of code should do the trick for you. It utilizes the filter get_the_archive_title to strip the prepended text. I’ve not tested it myself.

    Can hide the title using CSS. Try out this code snippet by adding it to you css file.

    .page-header{
    display:none;
    }

    If this fails, all you have to do is inspect the page using chrome developer tools.
    learn how here

    Look for the class name or page ID
    Then in the code snippet I gave you replace “.page-header” with the class name or page id. This should do the job.

    Or can simply follow this step by step guide to make things a lot easier:
    Hide Page Title or Post Title on a Case by Case Basis

    Can hide the title using CSS. Try out this code snippet by adding it to you css file.

    .page-header{
    display:none;
    }

    If this fails, all you have to do is inspect the page using chrome developer tools.
    learn how here

    Look for the class name or page ID
    Then in the code snippet I gave you replace “.page-header” with the class name or page id. This should do the job.

    Or you can simply follow this step by step guide to make things a lot easier:
    Hide Page Title or Post Title on a Case by Case Basis

    Thread Starter ericaski

    (@ericaski)

    UAMV your suggestion worked!! Thank you.

    Lawrence David I had tried the hide page header code before but it did not work for me.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide category posts title’ is closed to new replies.