• Resolved minimizeandtravel

    (@minimizeandtravel)


    Hi how can I remove this category title? So the word category and the category title? It takes up most of the screen. Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Otherwise, if you want to remove the entire title, you can do this with CSS added to “Customizer – Additional CSS” …

    .archive .page-header {
    display: none;
    }

    Oliver

    Thread Starter minimizeandtravel

    (@minimizeandtravel)

    Hi Oliver

    Thank you so much the CSS worked

    @domainsupport
    The correct code for functions.php file is:

    add_filter('get_the_archive_title_prefix', 'my_custom_get_the_archive_title_prefix');
    function twenty_one_get_the_archive_title_prefix($prefix) {
      if ($prefix === 'Category:' || $prefix === 'Tag:') {
        $prefix = '';
      }
      return $prefix;
    }
    • This reply was modified 3 years, 5 months ago by Aris. Reason: make it more clear

    That depends what version of WordPress you are running.

    get_the_archive_title_prefix filter wasn’t introduced until 5.5.

    Oliver

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove category titles’ is closed to new replies.