Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-01-23 21:08:49

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Remove page title on WP

Is there any way to not display the page title on each page other than deleting the page title? I want to be able to identify each page without actually displaying the page title on each page on the site.

Thank you!

Offline

#2 2017-01-24 00:53:07

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

The easiest way would be to use a plug-in to hide titles.
Here's one https://wordpress.org/plugins/hide-title/
This one looks like it hides titles on a per page and per post basis.

There may be one that will always hide the title, but if not, then you should be able to hide display titles using custom CSS.

try this:

	.post-title {
	display: none;
}

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#3 2017-01-24 05:34:19

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Re: Remove page title on WP

That worked perfectly, thanks Rod

Offline

#4 2017-01-24 05:51:23

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Re: Remove page title on WP

Only one thing, is there a way displaying the title on Blog posts but not on pages?

Offline

#5 2017-01-24 05:56:05

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

That plug-in works on both I think.

I'll take a look to see if there's a selector specific to pages or posts that can be used for css. Otherwise you'll probably have to go the child theme and code route. Check the WordPress Codex.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#6 2017-01-24 06:46:03

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

try this for removing title from pages only:

.page-template .post-title {
      display: none;
}

if that doesn't quite do it, you can use your browser's inspector to see if there are any other selectors you need to include.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#7 2017-01-25 22:49:48

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Re: Remove page title on WP

Thanks Rod, that didn't work, but it's not too much work to manually add titles to the blog posts

Offline

#8 2017-01-25 23:25:45

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

It works for me, but you may need a different selector to hide only page titles but show post titles.
If you post a link to a page and a link to a post, we'll be able to tell.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#9 2017-01-26 05:03:39

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Offline

#10 2017-01-26 05:15:20

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

I see on both of those you're using inline css?
Have you tried using a custom css file with this code that just hides the page titles and not the post titles

.page-template .post-title {
      display: none;
}

or just replace the code you have with the code above. It looks like you might have added it in the customizer?

I just put that code into the Additional CSS section of the customizer on my own CE4 based blog and it preserves the post titles while hiding the page titles.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#11 2017-01-26 06:44:21

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Re: Remove page title on WP

I am just adding the code in the customizer, the original code works
JjLnIssYE46Ll7xhvr8a_9adupIYKIUNl_RSTkTXG7iB6tikibVYSXWR-uwJxtc01jPpG1GkUOy4MkI=w1359-h948

but the new code doesn't
Jdi1VlF25I5yrzFH3LUtlKZ2XwqAsqixc_1Rpcw1sAz293NadRcnwquRoqEkqxd6WN29wBqXp2aqKAc=w1359-h948

Offline

#12 2017-01-26 06:51:36

ShawWellPete
Member
Registered: 2013-03-24
Posts: 111

Re: Remove page title on WP

I've found a Hide Title plugin, which seems to work.

All good, thanks Rod

Offline

#13 2017-01-26 06:54:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,556
Website

Re: Remove page title on WP

I'm surprised. I was able to swap out the code in your site using the browser's inspector and the page title for posts appears but the title for pages does not. It works the same on my site.
But at least you've got something that works now.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

Board footer

Powered by FluxBB