Community Forums › Forums › Design Tips and Tricks › Remove title on 'pages' only
This topic contains 12 replies, has 5 voices, and was last updated by braddalton 2 months, 1 week ago.
-
AuthorPosts
-
February 27, 2013 at 4:09 am #23071
Hi,
I’m looking for a function to remove the page title on the ‘static’ pages only, but leaving it visible on any blog, single and archive pages, etc. It would also need to remain visible on the static page I have set to show the blog posts.
I’m assuming there is a way to do this without a large array?
Thanks in advance
David
February 27, 2013 at 5:14 am #23074Link to your site please
It would be something like this:
.page-template-default .entry-title { display:none; }
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.March 4, 2013 at 12:48 pm #24088I have the same question as fortyfivecreative.
Thanks for your response braddalton. Could you be more specific as to where the code snippet you posted should be added? Does it go in the “page-title.php” file? Does it matter where in the file it is added?
Thanks,
Curt
March 4, 2013 at 1:03 pm #24089OK,
Just added the line of code you recommended to my functions.php page and got locked out of my blog dashboard with the message:
Parse error: syntax error, unexpected ‘.’ in /home/curt/public_html/fpressstudio.com/blog/wp-content/themes/minimum/functions.php on line 23
Please tell me I can undo what I did without starting all over with a fresh install…
March 4, 2013 at 2:07 pm #24112braddalton’s suggestion is a possible CSS remedy NOT to be included in the .php file. You will need to access your site via FTP to remove the code you added to the functions.php.
Once you get the site up again, try the CSS remedy in style.css. If that doesn’t work, consider this plugin. It may just work for what you need. Genesis Title Toggle
Do include a link to your site if you need more help.
Amy Susan Design.com @AmySusanDesign
March 4, 2013 at 5:08 pm #24161Yes sorry, i should have mentioned the code goes at the end of your child themes style.css file. My Bad!!
CSS doesn’t work very well in the functions.php file!!!
The reason i suggest CSS is so the title is still visible in the source code and gets scanned by Google’s little monsters.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.March 11, 2013 at 1:40 am #25427Hi all,
I have a similar question.
I want to remove the title and the date from my first site, the “start”-page ….., but only from this site and not from all static ones.I found the following code and put it in the “function.php” of the child
theme (using child-theme “Expose”), but it doesn’t work://REMOVE PAGE TITLE FROM HOME PAGE
add_action(‘get_header’, ‘child_remove_page_titles’);
function child_remove_page_titles() {
if (is_home()) {
remove_action(‘genesis_post_title’, ‘genesis_do_post_title’);
}
}Do you have any ideas how to remove at least the page
title … and as said I want to remove the date as well?Thanks in advance & best regards,
FrankMarch 11, 2013 at 1:43 am #25428Hide them using CSS code if your PHP doesn’t work.
Can you link to your site please.
You mean from your home page or front page?
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.March 11, 2013 at 1:49 am #25429Hi Brad,
thanks for your fast response.
The site isn’t official so far…. however, I will make it visible for the next hour. Please let me know when you could have a look at it.
Thanks so far,
best regards,
Frank
March 11, 2013 at 3:17 am #25435.home .post-info { display: none; } .home #content h1 { display: none; }Paste this CSS code at the end of your child themes style.css file.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.March 11, 2013 at 3:34 am #25437Brad,
thank you so much. That’s it.
Another question: Just in case I don’t want to display the title on other pages as well. How looks the css-code for generally hiding “title, Author, date”?
Again, thanks a lot.
Best rgds,
Frank
March 11, 2013 at 4:11 am #25440… sorry, just to mention, that I have tried to code on top of this thread.
.page-template-default .entry-title {
display:none;
}That doesn’t work because “date” is still visible.
Rgds,
Frank
March 11, 2013 at 8:07 pm #25555I added the CSS code as new rule in Firebug and it did work. Try clearing your browser cache.
The other code you are referring too doesn’t relate to your site which is probably why it doesn’t work. ALL the code i post here is tested so it ALWAYS works otherwise i wouldn’t post it.
I have every single SP theme installed locally.
If you want to hide a title on a page or posts simply use the post i.d
Example:
.post-id-007 .entry-title { display: none; }Hiding titles on posts and pages will reqiure different code.
You need to be very specific with a question to get the best answer.
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered. -
AuthorPosts
You must be logged in to reply to this topic.