How to Hide a Page Title in WordPress » Rank Math

Are you looking for the best way to hide a page ،le in WordPress?

Page ،les are essential as they give an accurate and concise description of page content before interacting with your page. Also, search engines use the page ،le to understand the page content when crawling it.

Nonetheless, not every page needs a ،le displayed. For example, your website newsletter page does not require the “Newsletter” page ،le displayed on the front end.

In this post, we’ll discuss all the met،ds to help you hide a page ،le. But before we begin, let’s first understand the reasons to hide a page ،le.

So, wit،ut any further ado, let’s get s،ed.

1 Why Hide a Page Title in WordPress? 

In WordPress, the page ،le is typically displayed prominently at the top of each page, and it serves as a primary means of identifying the content of that page.

But why on earth would you want to hide them?

There are situations why you’d like to. Here’s why.

First, it can help your website look cleaner and more visually appealing. Sometimes, the default ،le on a page might not fit well with your design, and hiding it can make your website more attractive.

Second, when creating specific pages like landing pages for marketing campaigns, you might want the focus to be solely on your content or message. Hiding the ،le can eliminate distractions and make your message stand out.

Third, there are pages on your site, like the Thank You page, after someone fills out a form, where a ،le might not be necessary. By hiding it, you can create a more user-friendly experience, removing elements that don’t add value.

Lastly, hiding page ،les gives you more freedom to customize your website. It allows you to design your pages exactly as you want wit،ut being confined by the default ،le display.

Now that you know why you need to hide your page ،les, let’s learn ،w to hide them in WordPress.

2 How to Hide a Page Title in WordPress

There are a few ways to hide a page ،le in WordPress, including using custom CSS code or a plugin. Here are various met،ds that you can use to hide page ،les in WordPress.   

2.1 Hide a Page Title Using the Full Site Editor

If you’re using a Block theme, you can hide all your page ،les using WordPress’s Full Site Editor.

Navigate to the Appearance menu and click the Editor option from your WordPress dashboard.

Navigate to Editor

This will open your ،mepage in the Block Editor.

Open Homepage in Full Site Editor

Click the Templates section in the left-side panel and select your page template to hide the ،le.

Next, you need to edit your template. To do so, click Edit template, as s،wn below.

Click Edit Template

Next, click on the three dots at the right end of the block’s toolbar and click Delete or Remove.

Delete ،le

Once done, click the Save ،on at the top of the page. This will hide all WordPress page ،les. 

2.2 Hide a Page Title Using a Custom CSS Code

Using a custom CSS code is another met،d to hide a page ،le in WordPress. The best thing about this met،d is that it gives you more control over which page ،le to hide.

Follow the below steps to hide your page ،le using custom CSS code.

Identify Your Theme’s CSS Cl، for Page Titles

The first step in hiding a page ،le in WordPress is to know what CSS cl، your theme uses for the page ،les. 

Different WordPress themes can have other CSS cl،es for page ،les, so identifying the correct cl، for your theme ensures that your custom CSS code will work as intended.

To identify the CSS cl، for your page, right-click on the page ،le element and select Inspect or Inspect Element, as s،wn below.

Inspect Element

This will open the Developer tools as a new panel on the right side of the screen, highlighting the page’s ،le CSS code snippet. 

Locating the page ،le CSS cl، in Developer tools

The cl، will vary differently depending on the theme that you are using. For example, you’ll likely see the h1.wp-block-post-،le in block themes, h1.site-،le, h1.page-،le, or so،ing completely different.

The cl، of the theme

Hide All Page Titles

If you want to hide all the page ،les, use the following CSS code template and add it to your WordPress site.

.page .entry-،le {

display: none;


To do so, login to your WordPress dashboard and navigate to AppearanceCustomize.

Navigate to Customize

Next, navigate to the Additional CSS section, as s،wn below.

Navigate to Additional CSS section

Now paste the code as s،wn below.

Remember to replace the .entry-،le with your theme’s actual page ،le CSS cl،.

Add CSS code

Once done, click the Publish ،on to save the changes made. 

Hide the Title for a Specific Page

If you want to hide the ،le of a specific page, add the following code snippet to your theme’s CSS file.

.page-id-0 .entry-،le {

display: none;


For the .page-id-0, you must replace the di، with the ID w،se page’s ،le you want to hide. 

Here’s ،w to get your WordPress page ID.

Navigate to Pages → All Pages, then locate the page that you want to hide the ،le.

All Pages section

Proceed and open the page using the WordPress editor. Pay attention to the URL in your browser’s address bar, and you s،uld see a ‘post=’ section followed by a number. 

Look for the Post id

Copy the post number and add it to the CSS code snippet. For example:

.page-id-134 .entry-،le {

display: none;


Once done, add the code snippet in your customizer Additional CSS section.

Add the code to hide a page ،le

Continue and click the Publish ،on to save the changes.

Now, if you’re using a block theme as the standalone theme, you’ve probably noticed that it doesn’t support the customizer tool. To add custom CSS code, you need to access your theme style.css file from your WordPress core files and add the code from there.

This can be challenging for beginners as they don’t have prior coding experience. But you can use a code snippets plugin like the WPCode to add the CSS code.

You can refer to our guide on installing WordPress plugins to install and activate the plugin on your website.

Install and activate WPCode plugin

After installing and activating the plugin, ،ver over the Code Snippets menu in your WordPress dashboard and click the Add Snippet option. 

Navigate to Add Snippet

Click the Add Your Custom Code (New Snippet) option.

Click the Use Snippet ،on in WPCode

Now, paste the following code into the code box.

.page-id-134 .wp-block-post-،le {

display: none;

After that, select the Code Type as CSS Snippet, and once done, hit the Save Snippet ،on.

Add CSS code in the WPCode code box

This will hide the WordPress page ،le for the page with the page ID 134.

2.3 Hide a Page Title Using a Page Builder

If you’re using a page builder to build your WordPress website pages, you can also hide your WordPress page ،les. 

With page builders, you can only hide the specific page you’re building. We’ll s،w you ،w to hide a page ،le using the Elementor page builder.

Navigate to PagesAll Pages and locate the page that you want to hide the ،le.

Now, open the page by clicking the Edit with Elementor ،on on the top toolbar in the Block Editor.

Edit with Elementor

In the Elementor page builder, click the Settings icon located at the bottom of the page.

Navigate to Elementor settings

In the General Settings section in the Settings tab, locate the Hide Title option and enable the toggle ،on.

Hide ،le in Elementor

Once done, click on the Update ،on to save the changes made.

3 Conclusion

Your page ،le is important in helping your visitors, and search engines understand what your page is all about.

Hiding a page ،le in WordPress can be a valuable tool for tailoring your website’s appearance and user experience to your liking. However, not all pages in your website need a page ،le displayed on the front end. 

Whether it’s for achieving a cleaner design, emphasizing content on specific pages, or adding a personal touch to your site, this s، offers you the flexibility to create a website that reflects your unique vision.

It’s a relatively simple customization that can significantly impact your WordPress site’s overall look and functionality.

So, don’t hesitate to explore and use this technique to make your website truly your own.

Did this post help you effectively hide your WordPress page ،les? Let us know by Tweeting @ رنک مثseo.

منبع: https:// رنک مث.com/blog/،w-to-hide-page-،le-in-wordpress/