Community Forums › Forums › Archived Forums › Design Tips and Tricks › Removing Page Titles | Pretty Pictures Theme
Tagged: page titles, pretty pictures
- This topic has 29 replies, 7 voices, and was last updated 12 years, 8 months ago by
Brad Dalton.
-
AuthorPosts
-
February 14, 2013 at 3:55 am #20269
Brad Dalton
ParticipantNote: A Post formats UI maybe included in the next version of WordPress 3.6 and added to the editor.
February 14, 2013 at 4:24 am #20272Brad Dalton
ParticipantPlease let me know if this is what you wanted.
add_action('get_header', 'child_remove_page_titles'); function child_remove_page_titles() { if ( !is_page() || is_single() ) { remove_action('genesis_post_title', 'genesis_do_post_title'); } }This code removes titles from all single posts but not single pages or archive pages like your blog page.
February 19, 2013 at 5:29 pm #21502KBordonaro
MemberThanks, Brad!
I don't think I was clear...
I'm trying to remove the titles from the single pages, not single posts.
I still can't get it to work. 🙁
-Kimberly
February 20, 2013 at 12:04 am #21569Brad Dalton
ParticipantUse the conditional tag for single pages and it will work as long as you remove the post formats code.
February 20, 2013 at 3:33 pm #21811KBordonaro
MemberI'm such a coding rookie...
So I copy and paste the code you put (above my last reply), but I change the conditional tag to look like this:
add_action('get_header','child_remove_page_titles');
functionchild_remove_page_titles() {
if( !is_page() || is_single() ) {
remove_action('genesis_page_title','genesis_do_page_title');
}
}February 22, 2013 at 2:02 pm #22277Brad Dalton
ParticipantNot sure of the conditional statements to use. The guys on the WordPress Codex aren't either. Been a hard a few weeks mentally with all the coding. Hopefully i can work it out for you soon.
The function works so its just a matter of working out which tags to use in the function.
February 22, 2013 at 2:11 pm #22279Brad Dalton
ParticipantI think i have worked it out using CSS.
.page-template-default .entry-title { display:none; }
May 16, 2013 at 1:33 pm #41247SociallyExceptional
ParticipantThe Toggle pluggin works great if you check on each page that you don't want the title to show. Then the blog titles will still show. If you click the box inside the Genesis theme options to remove every header by default then it takes out the blog titles too
May 20, 2013 at 11:32 pm #41968karino
MemberHi Brad
I typed in your suggestion -into the functions.php at the end as suggested.
/**remove page titles only sitewide*/
add_action('get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
if ( is_page() ) {
remove_action('genesis_post_title', 'genesis_do_post_title');
}It works a treat! thanks - this was really bugging me.
May 21, 2013 at 12:47 am #41980Brad Dalton
Participant -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.