WordPress Do Not Show Page Title: A Step-by-Step Guide
WordPress is a versatile platform for building websites, but sometimes you may want to hide the page title for a cleaner or more customized look. Whether you’re building a landing page, a portfolio, or any custom layout, hiding the page title can make your design stand out. Here's how to prevent WordPress from displaying the page title using different methods.
Why Hide the Page Title?
There are several reasons to hide a WordPress page title:
- Design flexibility: Removing the page title gives you more freedom to customize your content and layout.
- Landing pages: Often, landing pages look better without a page title, allowing the focus to remain on the call-to-action.
- Aesthetic choices: Some themes may not handle page titles well, making them look out of place or redundant.
Follow these steps to remove the page title from your WordPress site.
How to Hide the Page Title in WordPress
1. Using the WordPress Block Editor (Gutenberg)
If you’re using the WordPress block editor (Gutenberg), hiding the page title is simple.
- Open the page you want to edit in the block editor.
- In the right-hand sidebar, find the "Page" tab.
- Scroll down to "Document Settings."
- Check for the option "Hide Title." If your theme supports it, there should be a toggle to hide the title.
- Publish or update your page.
2. Using CSS to Hide the Title
If your theme doesn’t offer an easy option to hide titles, custom CSS is a great workaround.
- Go to your WordPress dashboard and navigate to Appearance > Customize .
- In the customization panel, select Additional CSS .
Enter the following CSS code:
css
.entry-title {
display: none;
}
- Save and publish your changes.
This CSS code targets the class responsible for the title and hides it across the entire site.
3. Using a Plugin
For users who prefer not to deal with code, plugins offer an easy solution.
- In your WordPress dashboard, go to Plugins > Add New .
- Search for the plugin "Hide Title" or similar.
- Install and activate the plugin.
- Edit the page you want to hide the title for. You will see a new option added by the plugin to hide the page title. Simply toggle it on.
- Publish or update your page.
4. Modify Your Theme's Code
For more advanced users, directly editing your theme files is an option.
- Navigate to Appearance > Theme Editor .
- Locate the page.php or single.php file, depending on whether it’s a page or post you want to edit.
Look for the line of code that outputs the title, typically something like this:
php
Copy code
- Remove or comment out this line.
- Save your changes.
Note: Always create a child theme or back up your files before modifying the theme code to avoid losing changes when your theme updates.
FAQ: Hiding Page Titles in WordPress
1. Will hiding the page title affect SEO?
No, hiding the page title visually won’t affect your SEO as long as the title is still present in the HTML code. Search engines will still index the page with the title you’ve set.
2. Can I hide the title for specific pages only?
Yes, using custom CSS or plugins, you can hide titles on individual pages without affecting the rest of your site.
3. What if my theme doesn’t support hiding titles?
If your theme doesn’t offer an option to hide titles, you can use custom CSS or a plugin to achieve the same result.
4. Will this method work for posts too?
Yes, you can apply these methods to both pages and posts, but the theme’s structure might differ for posts. You may need to locate the appropriate post template.
5. Is it safe to modify the theme’s code?
Yes, but it’s always recommended to use a child theme or back up your files before making changes. If you're not comfortable editing code, using a plugin is safer.