How to Remove Page Header Title?

No results found. Try again with different words?

Search must be at least 3 characters.

    How to Remove Page Header Title?

    You might ever have a requirement, where you needed to remove Page Header Title. And the previously the only option was to hide the same using custom CSS.

    We are providing two filters. One to remove the Page Header Title and another one to add the Page Title in the Content Area.

    Let’s dive into both the cases and see the filter on how it will work –

    Case 1:

    How to remove Page Header Title which appears on top of the image.

    Solution: You will need to add the following filter, this will remove the title from the Page Header.

    add_filter( 'astra_advanced_header_title', 'remove_page_header_title' );
    function remove_page_header_title() {
      return;
    }

    Note

    Paste the above code in the child theme’s functions.php file.

    Case 2:

    After removing the Page Header from the Top Banner, we will need to add the title in the below content area.

    Solution: Let’s see the filter you will need to add the title to the content area –

    add_filter( 'astra_the_title_enabled', 'display_page_title', 999 );
    function display_page_title() {
      return true;
    }

    Note

    Paste the above code in the child theme’s functions.php file.

    This is how you can remove the Page Header Title and add the Title in the content section.

    Was this article helpful?
    Did not find a solution? We are here to help you succeed.

    Related Docs

    Scroll to Top

    Download is Just A Click Away!

    Be among the first to try the beta version of Astra’s Header Footer Builder. Filling the form will ensure you’ll be the first to learn about updates and features.

    Download is Just A Click Away!

    Enter your email address and be the first to learn about updates and new features.