Tagged: Blog
- AuthorPosts
- May 12, 2021 at 5:34 pm #37733Joshua MarshallGuestMay 12, 2021 at 5:39 pm #37740Jesse OwensKeymaster
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.
May 13, 2021 at 1:35 pm #37749Joshua MarshallGuestI have multiple categories.
May 13, 2021 at 2:03 pm #37792Joseph WKeymasterHi 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!
- AuthorPosts
- The topic ‘Blog category page starts with CATEGORY:’ is closed to new replies.