|
/ Documentation /Custom Code Snippets/Astra Theme & Pro Filters/ How to Hide the Page Title in Astra (Without Affecting SEO)

How to Hide the Page Title in Astra (Without Affecting SEO)

Astra lets you hide the visible title on any post, page, or custom post type — without touching your SEO title. The <title> tag that search engines read is set by WordPress or your SEO plugin and is completely separate from the title displayed on the page. Hiding the page title through any of the methods below will not affect your search rankings.

There are three ways to do this depending on how broadly you want the change to apply:

GoalMethod
Hide the title on one specific page or postEditor settings
Hide the title across all posts or all pagesCustomizer Structure control
Hide the title programmatically (all post types or custom conditions)Custom code

Method 1 – Hide the Title on a Single Page or Post

This is the fastest option when you only need to hide the title on one specific page or post.

  1. Open the page or post in the block editor.
  2. Click on the title block. A small eye icon will appear to the left of the title.
  3. Click the eye icon — the title will be marked as hidden.
  4. Click Save and preview the page on the frontend to confirm.

To re-enable it, click the eye icon again.

Using Elementor? Open the page in Elementor → click the gear icon (Page Settings) at the bottom left toggle Hide Title on → Update. This syncs automatically with Astra — no need to use the Astra Settings panel separately.

Info

Need to do this on many pages at once? Use the Astra Bulk Edit plugin to apply this setting across multiple posts or pages without opening each one individually.

Note: This method applies to individual posts and pages only. It does not affect archive pages (blog listing, category pages, tag pages). For those, use Method 2 or Method 3.

Method 2 – Hide the Title Globally for a Post Type

Use this when you want to hide the title on all posts, or all pages, without writing any code.

  1. Go to Astra > Customize.
  2. Navigate to Post Types > Single Post (or Single Page, depending on your target) > Post Title Area
  3. Find the Structure control — it shows the elements that appear in the title area (Title, Meta, Featured Image, etc.).
  4. Click the eye icon next to Title to hide it across all posts of that type.
  5. Click Publish to save.
Disable title via Astra > Customize > Post Types

Method 3 – Disabling the Title Via Custom Code

You can also do this using a custom code. This can be a great solution if you want to disable titles on all posts, pages, or other post types.

You can add the following custom code to the functions.php file of your Child Theme:

/** 
 * Disable title on all post types. 
 */ 
function your_prefix_post_title() { 
 $post_types = array('page','post'); 

 // bail early if the current post type if not the one we want to customize. 
 if ( ! in_array( get_post_type(), $post_types ) ) { return; } 

 // Disable title. 
 add_filter( 'astra_the_title_enabled', '__return_false' ); 
}
add_action( 'wp', 'your_prefix_post_title' );

If you don’t have your Child Theme installed, please check this article on how to do it. 

If you’re not sure how to add this code, please check this article.

This code will remove titles on all of your pages and posts. You can apply this code only to pages, posts, any of your other post types, or all of them by modifying the bolded part of the code above. Here are examples of how this should look like:

  • To remove titles on all your posts only:
$post_types = array('post');
  • To remove titles on all your pages only:
$post_types = array('page');
  • Remove titles on all pages, posts, and example custom post types. This is the example that you can use to add any other post types to which you want the above code to be applied:
$post_types = array('page','post','custom-type-1');

If you are still unable to turn the Title off from a specific post or page, please reach out to our customer delight team by clicking here.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Scroll to Top