Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to Prevent Page Title Display on Single Page?
Tagged: hide page title one page only
- This topic has 14 replies, 5 voices, and was last updated 11 years, 12 months ago by Marc.
-
AuthorPosts
-
December 14, 2012 at 5:10 pm #5289WilliamMember
Hi,
Does anyone know how I can prevent the display of a Page Title on a given WordPress Page?
–William
http://williambeem.comDecember 14, 2012 at 6:59 pm #5316SusanModeratorDecember 14, 2012 at 7:26 pm #5325WilliamMemberThanks. I looks like it should do it, but doesn't quite seem to work.
I'm trying to remove the title from my 404 error page (try http://test.beem.us/snot for example). I found the post number for my 404 page and replaced it in the line given on that topic and put it in my styles.css. Still get the page title, though.
–William
http://williambeem.comDecember 14, 2012 at 7:42 pm #5328SusanModeratorNext up 😉 - try this thread (from in this forum not too long ago):
December 14, 2012 at 8:20 pm #5333WilliamMemberThanks. That one didn't show up in my searches. It looks like it removes all page titles, but I'll see if I can tweak it to just remove the one I want.
Really appreciate the help!
–William
http://williambeem.comDecember 15, 2012 at 2:22 pm #5446GJudyParticipantA wonderful woman posted this in the old forum
<?php
// Template Name: noTitle
// Remove the page title
remove_action( 'genesis_post_title', 'genesis_do_post_title' );genesis();
I can't get in there to get her name and give her credit, but the little php works for me. I upload the save php page to the theme and schzam I have a different page template that says no title. I suppose you could name it something cuter, but I'm the one who sees it.
I've done the quick and dirty method of leaving the page title blank. You can change the permalink. But, if there are very many, keeping track of them leads to stress (that's putting it mildly).
December 15, 2012 at 2:49 pm #5448JohnParticipantWilliam,
On that test site are you trying to remove the 404 in the H1 tag that is just above the 404 image? Or the title that says, "A Place to Play Around"?
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 15, 2012 at 4:16 pm #5459WilliamMemberGJudy: Thank you. As a new member, I'm locked out of the old forum, so I really appreciate you checking this for me. I'll give it a shot.
John: I'm trying to remove the 404 in the H1 tag just above my image. It's not a major deal, but one of those little details that I'd like to clean up. With the big 404 in the image, the page title is a bit unnecessary.
–William
http://williambeem.comDecember 15, 2012 at 4:43 pm #5464JohnParticipantYou could make a copy of the Genesis 404.php, remove the H1 tag, replace everything inside the entry-content DIV with your image, and put that in your child theme folder.
Or a simpler way would be to add this to your style.css file:
.post-505 h1 {
display: none;
}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 15, 2012 at 5:12 pm #5469WilliamMemberJohn. thanks for the suggestions.
I've tried that CSS before. In fact, it's in the page now, but it doesn't work. Editing the Genesis 404.php may also be a solution. I didn't think there was such a file, but I was looking in the Minimum theme folder, not the Genesis theme folder.
I'll give it a shot. Thanks.
–William
http://williambeem.comDecember 15, 2012 at 5:22 pm #5472JohnParticipantYou're welcome. Don't want to beat a dead horse here, but I don't see that particular code in your CSS. Are you sure it's in there?
You could also give it a boost by adding an ID to the selector:
#content .post-505 h1
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 15, 2012 at 5:28 pm #5474WilliamMemberYep, it's at the bottom of the styles.css file on williambeem.com. I tried adding #content as you just shared, but still no change.
–William
http://williambeem.comDecember 15, 2012 at 5:48 pm #5476JohnParticipantAhh, that's a different website than the test site you linked to earlier. Try this instead:
#content .post-9789 h1 {
display: none;
}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 15, 2012 at 5:53 pm #5478WilliamMemberOK, well now I just feel silly. I tried that suggestion on the test site (before you mentioned adding #content) and it didn't work. When I posted it on williambeem.com, I forgot to check that the page number would be different.
Glad to say it works! Thanks very much for your help, John. I appreciate it.
–William
http://williambeem.comDecember 15, 2012 at 6:28 pm #5484MarcParticipantFor others, Bill Erickson's Genesis Title Toggle plugin works great! Easy selectivity on each and any page/post -
http://wordpress.org/extend/plugins/genesis-title-toggle/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.