I am trying to remove the words “Category Archives:” on the posts category page or The7 WordPress Theme.
This one really has me stumped. I have gone through every file in the theme that I can think of and even tried to change this via the SEO plugin but am having no luck.
I was wondering if anyone had any ideas?
Here is the development site address: http://bellparktest.com/category/research-center/
Thank you,
Derek
4
Answers
I’m not sure about ‘Category Archives:’, I only see ‘Category:’—that can be removed e.g. with the plugin ‘Slash Admin’ (‘Frontend > Miscellaneous > Remove “Category:” from archives’). That seems to accomplish the task as follows (remove the ‘if’ around the ‘add_filter’ if you implement this yourself):
Disable the page title via Custom CSS located in Advanced CSS in Theme Options.
OK- First of all – You should use the theme’s child theme to make this kind of modification because when you make an update in the future it will wipe out all your changes.
You should look for the function “function presscore_get_page_title()” inside > wp-content > themes > dt-the7 > inc > helpers> .
copy it from line 12: “if ( ! function_exists( ‘presscore_get_page_title’ ) ) :”
to line 97 “endif;”
paste it inside your child theme “function.php” > wp-content > themes > dt-the7-child .
then change ‘category’ => __( ‘Category Archives: %s’, ‘the7mk2’ ), to ‘category’ => __( ‘ %s’, ‘the7mk2’ ),
You should get something like this:
You have this filter for all cases: “get_the_archive_title”. But then there are different cases.
For exemple for simple category you can do :
For custom post type you should do :