Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37733
    Joshua Marshall
    Guest
    #37740
    Jesse Owens
    Keymaster

    Hi Joshua-

    Thanks for reaching out, and thanks for using the Inspirations WordPress Website Builder.

    In order to get rid of the CATEGORY: part, you need to set up a dedicated Blog Page. Here’s a quick video on how to set this up, if you have a few minutes to watch:

    Here’s a guide with detailed instructions on the process as well.

    #37749
    Joshua Marshall
    Guest

    I have multiple categories.

    #37792
    Joseph W
    Keymaster

    Hi Joshua!

    The Category: prefix that appears before each title on the Category pages is automatically added by WordPress to help differentiate which kind dynamic page is currently being viewed.

    It is possible to remove that prefix with a custom PHP script and personally I like using the Code Snippets plugin to add custom PHP to websites.

    I tried out the following snippet in one of my testing environments and it removed the Category: prefix from my Category pages as expected, so hopefully you find the same success with it.

    function remove_category_title_prefix( $title ) {
    if ( is_category() ) {
    $title = single_cat_title( '' , false );
    }
    return $title;
    }
    add_filter( 'get_the_archive_title', 'remove_category_title_prefix' );

    Code Snippets allows you to choose where to run your individual custom PHP snippets and I recommend using the Only run on site front-end option when first setting up the snippet. Doing that will prevent the code from running in the administrator area of your website and allows you to deactivate the snippet if there are any typos in the code that trigger a fatal error.

    Please let us know if you have any other questions for us Joshua!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Blog category page starts with CATEGORY:’ is closed to new replies.