Site logo

Archived topic

How to disable Content Title for all pages?

7 replies · Started by Oliver on January 25, 2018

Viewing posts 1–8 of 8

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 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!

This archived topic is closed to new replies.