Archived topic
page title
5 replies · Started by hitesh on March 19, 2022
Hello GP people,
This time I'm having an issue with removing page titles from the site.
I used the elements option with success for most of the part, but it's removing the post titles from the category archives while the actual category title is still present.
ex. https://mustechie.com/category/blockchain/
Is there any CSS or kind of thing to remedy this? Please note I would hate to install a plugin for these things.
Thanks
Hi there,
add this PHP Snippet to remove the Archive Title:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_archive_title', 'generate_archive_title' );
} );
This doc explains how to add the PHP:
Hi David,
thanks for the prompt reply.
But I'm only halfway there since it removes the category titles, but the actual post titles aren't showing up.
Is there a workaround?
Hi Hitesh,
I see. Do you have a Layout Element that disables the Content Title for Archive Pages as well?: https://share.getcloudapp.com/9ZumAyR8
If so, may you try excluding Archive Pages as such: https://share.getcloudapp.com/L1uRgvWK
Side note - You may also use a Page Hero Block Element to hide the title of a Page: https://share.getcloudapp.com/12ug1k0g
Hope this helps! Kindly let us know how it goes. :)
Thanks Fernando,
you were right. I have set it when I was trying my bit to resolve this issue.
It's all sorted now. Many thanks.
You’re welcome Hitesh! Glad to be of assistance! Feel free to reach out anytime if assistance with anything else is needed. :)