Theme Author
Veda
(@vedathemes)
Hello,
Following steps should help you,
1. If you are not using a child theme, I suggest to use Code Snippets to add custom PHP code.
2. Copy following code and add to above mentioned plugin,
function bayleaf_modify_archive_title( $title ) {
return str_replace( 'Category:', '', $title );
}
add_filter( 'get_the_archive_title', 'bayleaf_modify_archive_title' );
3. You can also copy and paste above mentioned code directly at the end of Theme’s functions.php file, but, it will be overwritten with theme update. (Therefore it is advisable to use above mentioned or any other plugin)
Inform if you need any other help.
Hi there,
I am also looking to remove the word “category” or “tag” from my page header title but the above code did not work in the Custom CSS. It kept giving me error warnings and wouldn’t save.
Could you please let me know what custom CSS to use to simply remove “tag” or “category” from in front of my page header.
Thank you so much!
Theme Author
Veda
(@vedathemes)
Hi @thebeachbell
1. category and tags do not have any specific css class, therefore it is not possible to remove them only using css.
2. Do not paste the code in ‘Custom CSS’. This has to be posted in PHP file.
Simplest way is to download Code Snippets plugin and copy and paste above code.
Please always create a new ticket to get faster help. I do not get any notification on older tickets.
Please inform if you need more help on this.
Thanks