[Support request] Disable Page TItle completely

Home Forums Support [Support request] Disable Page TItle completely

Home Forums Support Disable Page TItle completely

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #261662
    Amos

    Hello. i want to remove the page title completely but with the disable elements add on it is using “display:none”.
    Thank You.

    #261668
    Leo
    Staff
    Customer Support

    Hi there,

    If I understand correctly, you don’t want to use disable elements because it’s using CSS to hide it?
    If so you can remove it using generate_show_title filter: https://docs.generatepress.com/article/generate_show_title/

    Let us know.

    #261669
    Jamal

    Hi

    You can completely remove all page titles you can do this

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

    https://docs.generatepress.com/article/generate_show_title/

    How to add above code: https://docs.generatepress.com/article/adding-php/

    Edit: Leo beat me to it

    #261675
    Tom
    Lead Developer
    Lead Developer

    You guys are awesome lol

    #261678
    Tom
    Lead Developer
    Lead Developer

    BTW, the Disable Elements add-on should remove it completely, not just use display: none. Make sure you’re using the latest version of GP and GP Premium.

    #261682
    Amos

    Yes Tom i am using the latest version of the gp and gp Premium. after i check the Content Title (on disable elements) i have “.entry-header {display:none} ” on the source code (ctrl + U).

    #261684
    Tom
    Lead Developer
    Lead Developer

    Are you sure the title is actually inside that hidden element?

    #261757
    Amos

    I am not sure what do you mean.
    the Content Title is the name of the page right?(automatically become the h1 title)

    #261758
    Tom
    Lead Developer
    Lead Developer

    That’s correct, can you link me to the page where you’ve hidden the title?

    #391807
    John Maui

    Hi Tom,

    I have just use your theme and also use Disable Element but it only hide the Title, don’t remove completely.
    It mean that in source code, you will find other H1. It’s not good for SEO because each page don’t need 2 H1.

    Here is my site https://duhocvietduc.edu.vn

    #391880
    Leo
    Staff
    Customer Support

    You can remove the title completely by using this filter: https://docs.generatepress.com/article/generate_show_title/

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