how do you remove "Archive | " from wordpress category page and only show the category? is there a plugin or what code do i need to remove?
Thank you in advance ;-)
how do you remove "Archive | " from wordpress category page and only show the category? is there a plugin or what code do i need to remove?
Thank you in advance ;-)
What I imagine that you mean is that there is a header tag containing "Archive | " somewhere in your category page. If you want to get rid of this string, the first thing you should look for is whether or not this can be changed somewhere in a Theme Options Page (if applicable).
If you don't have a Theme Options Page, look for "category.php" in your theme folder. Inside there, you should be able to find "Archive | " fairly easily and remove it.
DO NOT DELETE ANY FILES!! If you're having trouble, post the contents of your theme's category.php file, and I'll be sure to try and help you further.
To remove archive pages I use to do this way: remove the archive.php page from theme (most of time it's redundant and not needed, there already are tags and categories) and then add this small code snippet in index.php page of your theme. So users that try to fetch content adding years and months to your urls are redirected to standard 404 page.
if(is_archive()) {
// force 404
$wp_query->set_404();
status_header( 404 );
nocache_headers();
include("404.php");
die;
}
A longer post about that here: http://www.barattalo.it/2015/09/08/wordpress-remove-archive-pages/
Try the WP No Category Base plugin.
It does remove the /category/
slug from your URL's, and hopefully it can also solve your question.
Try to delete archive.php in your theme's folder.