Hide page name

DrEddieS
DrEddieS used Ask the Experts™
on
How do I hide the page name from all site pages? Wordpress Theme
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ResQTek NancyPresident @ ResQTek

Commented:
Can you please provide a link to an example page?

Basically, we want to hide the title using CSS by specifying display: none; for that element. This would be a global change, affecting all the pages in your theme.

You can add custom CSS at the bottom of the page with a plugin or you can edit your theme's stylesheet directly.

Author

Commented:
President @ ResQTek
Commented:
If you only want to hide the title for that page, there should be an option on the page itself in edit mode, on the bottom right.

To hide all the page titles, add CSS for the element as follows:

h1.page-title {
    display: none; /* hide the page title element */
}

Open in new window


Then to reduce the empty space, you could use:

header.entry-header {
    margin-top: -40px; /* this number can be adjusted as necessary */
}

Open in new window


These should be at the bottom of your theme's stylesheet or put in the footer of the page with a custom CSS plugin, in order to override the original styles.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial