Community Forums › Forums › Archived Forums › Design Tips and Tricks › Move Post Title on pages: Genesis Sandbox (HTML5 Markup)
- This topic has 7 replies, 4 voices, and was last updated 11 years, 1 month ago by
lucaswijntjes.
-
AuthorPosts
-
November 30, 2013 at 4:15 am #76259
protechig
MemberHello,
I'm looking to move the post title on pages from `genesis_entry_header' to outside of the content-sidebar-wrap. Essentially what I'm doing is adding a full-width h1 (page title) below the navigation bar, similar to http://youneedfat.com.
I tried removing and adding them in both the functions.php and by making a page.php.
I'd appreciate any assistance as it's driving me nuts, i've spent the past 3 hours trying to figure this out.
Thanks!
Zach
Zach Russell
President, ProTech Internet GroupNovember 30, 2013 at 4:24 am #76260protechig
MemberAnother page that uses the H1 like I am thinking is http://youneedfat.com/services
Zach Russell
President, ProTech Internet GroupDecember 2, 2013 at 9:57 am #76605protechig
MemberAnyone have any ideas on this?
Zach Russell
President, ProTech Internet GroupDecember 2, 2013 at 6:20 pm #76712jeremi_liwanag
MemberHey im not sure if this will help. Atleast i can try... I use this code to move my page title just below the nav menu..
remove_action('genesis_post_title', 'genesis_do_post_title'); add_action ('genesis_after_header','title_slider'); function title_slider() { if (is_page() || is_single()){ echo "<div class='main-title-bg'>"; the_title( '<h1>', '</h1>' ); echo "</div>"; } }
You may want to change that, In my case i use wordpress conditional codes and remove and add action thingy..
genesis_after_header is where i want to place my page title, You can check the other Hooks position by installing a plugin Visual Hook Guide, Hope this helps.
Your online success is our business http://www.systemise.com.au
December 4, 2013 at 6:08 am #76929protechig
MemberI figured out how to fix this. It's really odd, but it did't work within functions.php or page.php, I needed to use the Genesis Simple Hooks plugin in order to get it achieved.
Any Idea why this happened?
Zach Russell
President, ProTech Internet GroupJanuary 20, 2014 at 8:24 am #86092lucaswijntjes
MemberHi Zach,
Would you mind sharing how you managed to do it? I'm looking to do the very same thing as in the example you shared.
Looking forward to hearing from you soon.
January 20, 2014 at 8:41 am #86093Zach Russell
MemberSomeone private replied to me and linked to a post that showed me exactly what needed to be done. I'm pulling what I need to from the theme's functions.php file:
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
Add this to
genesis_before_content_sidebar_wrap
in the Genesis Simple Hooks Plugin:<?php if( is_singular() ) { genesis_entry_header_markup_open(); genesis_do_post_title(); genesis_entry_header_markup_close(); } ?>
Make sure you check "execute php".
Let me know if this works, if not I can help you with some other tricks I know.
———-
Zach Russell
President, ProTech Internet GroupJanuary 20, 2014 at 9:39 am #86100lucaswijntjes
MemberThanks for the reply Zach, unfortunately it didn't work for me. It gave me 2 entry titles. Any clue how to make it work?
Just like the fat media example I'm using a sticky header.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.