Archived topic
Hide Page Title on Category Archive Page
5 replies · Started by mavrocreative on October 30, 2020
Hi,
I would like to hide the Page Title on Category Archive Pages.
I've tried using Elements to Disable Content Title and then I select Post Category Archives, All Locations for the Display Rules but the page title still displays.
Any suggestions?
Many thanks!
Donna
Hi there,
Are you using the latest versions of the theme and GP Premium?
https://docs.generatepress.com/article/generatepress-and-gp-premium/
Hi Leo,
Yes...both the theme and the plugin are up to date!
Here's an example of one of the pages that is still showing the title:
http://modinteriorsonline.com/category/bath-design/
Donna
Ahh you are referring to the archive title.
Try this PHP instead:
add_action( 'wp', 'lh_remove_archive_title' );
function lh_remove_archive_title() {
remove_action( 'generate_archive_title', 'generate_archive_title' );
}
Leo
Brilliant! That worked! Many thanks!
Donna
No problem :)