[Resolved] How to disable Content Title for all pages?

Home Forums Support [Resolved] How to disable Content Title for all pages?

Home Forums Support How to disable Content Title for all pages?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #479755
    Oliver

    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.

    #479928
    Leo
    Staff
    Customer Support

    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/

    #479945
    Oliver

    yes, thats it. Great thank you so much LEO.

    #479951
    Leo
    Staff
    Customer Support

    No problem 🙂

    #748838
    rockett

    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?

    #748845
    David
    Staff
    Customer Support

    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

    #1734327
    luca_deep_delta

    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

    #1734392
    Leo
    Staff
    Customer Support

    Can you open a new topic for your question?

    This topic is a bit old already.

    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.