Using the Vantage Premium Them and trying to delete the “Category Archives” title on the category pages.
Here’s the bit I’m talking about: www.gone-adventuring.com/TEMP/category-title.jpg
I tried using the following solution, to no avail
https://wordpress.org/support/topic/remove-category-archives-text-from-title
I was unable to find the ( ‘Category Archives: %s’, ‘slidingdoor’ ), in any of the php files.
Any help would be greatly appreciated.
Cheers,
Rob K
URL: http://www.gone-adventuring.com/category/adventurestories/biking/
Hey Rob
The following at Appearance > Custom CSS is the easiest solution:
If you’d like to edit the title and not remove it, let me know and we can get stuck into a child theme solution.
(The function you were after is in /vantage/inc/template-tags.php – it can’t be safely edited there though).
Thank you, Andrew. That worked perfectly. Initially I tried inserting it into the CSS file first to see what would happen. It managed to omit the Title content, but also altered the formatting of other text. So I put it in the Custom CSS as you instructed.
Ideally I would like the Name of the Category appear at the top of each category. For instance, where it reads “Category Archives: Climbs and Hikes” it would read “Climbs and Hikes.” without the “Category Archives” bit. (http://www.gone-adventuring.com/TEMP/category-title.jpg)
However, it seems that when you begin playing around with the Child Theme, there’s the potential of messing up all sorts of other work that has been done to the formatting. Is that correct?
Activating a child theme will reset Appearance > Customizer > Theme Design and menu location settings. There shouldn’t be any other consequences as a result of activating one. To edit the archives title you’ll need to use a child theme that filters the title function.
Here is a child theme you can use:
https://siteorigin.com/wp-content/uploads/2015/08/vantage-child-rename-cat-archives.zip
Install from Appearance > Themes > Add New: Upload Theme. Activate.
Edit the child theme functions.php file from Appearance > Editor > functions.php. Edit the category archive title strings there. Be very careful what you change. You can edit the title strings but the surrounding structure of commas, brackets etc. must stay in place exactly like it is now.
Thanks, Andrew. Sorry for the delayed response, I’ve been off the grid for a while.
I might try this.
For sure, let us know how you come along.