Move Post Title on pages: Genesis Sandbox (HTML5 Markup)

Community Forums Forums Design Tips and Tricks Move Post Title on pages: Genesis Sandbox (HTML5 Markup)

This topic is: not resolved

This topic contains 7 replies, has 4 voices, and was last updated by  lucaswijntjes 6 months, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #76259

    protechig
    Participant
    Post count: 7

    Hello,

    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 Group

    #76260

    protechig
    Participant
    Post count: 7

    Another page that uses the H1 like I am thinking is http://youneedfat.com/services


    Zach Russell
    President, ProTech Internet Group

    #76605

    protechig
    Participant
    Post count: 7

    Anyone have any ideas on this?


    Zach Russell
    President, ProTech Internet Group

    #76712

    jeremi_liwanag
    Member
    Post count: 14

    Hey 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

    #76929

    protechig
    Participant
    Post count: 7

    I 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 Group

    #86092

    lucaswijntjes
    Participant
    Post count: 8

    Hi 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.

    #86093

    Zach Russell
    Participant
    Post count: 42

    Someone 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 Group

    #86100

    lucaswijntjes
    Participant
    Post count: 8

    Thanks 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.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.