[Support request] Disable content title

Home Forums Support [Support request] Disable content title

Home Forums Support Disable content title

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #218230
    Andrew

    Hey guys!

    Is there a way to disable to page title/content title by default instead of on a page by page basis?

    #218254
    Tom
    Lead Developer
    Lead Developer

    Hi Andrew,

    There is a filter you can use to disable the content title completely: generate_show_title

    More info on filters here: https://generatepress.com/knowledgebase/filter-list/

    Hope this helps ๐Ÿ™‚

    #218872
    Andrew

    Can you explain a bit more?

    I added this to my theme functions file:

    add_filter( 'generate_show_title', 'your_function_name' );
    function your_function_name()
    { 
        return 'false';
    }

    Doesn’t seem to have changed anything.

    #218881
    Neil

    You want to lose the apostrophes, this works

    add_filter( 'generate_show_title', 'your_function_name' );
    function your_function_name()
    { 
        return false;
    }
    #218888
    Andrew

    Gotcha. This still seems to leave a white bar at the top of the page though. Is there something else that needs to be hidden? My guess (and I am just guessing ๐Ÿ™‚ ) is that I hid the title, but the title area is the white area that is still visible?

    #218902
    Tom
    Lead Developer
    Lead Developer

    That filter should hide everything title related, HTML included.

    Can you link me to a page where the white bar is showing?

    #218913
    Andrew
    #218918
    Tom
    Lead Developer
    Lead Developer

    Ah, the content area has some top margin:

    .entry-content, .entry-summary, .page-content {
        margin-top: 0;
    }
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.