Archived topic
How to disable Content Title for all pages?
7 replies · Started by Oliver on January 25, 2018
Looks like filter 'generate_show_title' is not the right one.
'Disable Elements" > 'Content Title' works for each single page, but i am looking to disable content title for ALL pages, globally.
Or should i just use
header.entry-title { display:none; }
Thanks for any hints.
Hi there,
That's the right filter.
Try this:
add_action( 'after_setup_theme', 'tu_remove_title' );
function tu_remove_title() {
add_filter( 'generate_show_title', '__return_false' );
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
yes, thats it. Great thank you so much LEO.
No problem :)
Hiya,
I am using this and it works great But. I dont want it to hide single post titles.
Is there something I can dd?
Hi there,
you can now use the Layout Element:
https://docs.generatepress.com/article/layout-element-overview/
You can select Display Rules to chose which post types you wish to remove the title from
Hi guys,
somehow I don't get the option to disable the content title. It's greyed out.
Could you help me with that?
Thank you!
Luca
Can you open a new topic for your question?
This topic is a bit old already.
Thanks!