Forum Replies Created
-
AuthorPosts
-
August 25, 2015 at 8:47 am in reply to: Custom Navigation and Header Area in Genesis Framework #163432roborracleMember
Hi Brad - I got something figured out here. Here is what I ended up with:
remove_action( 'genesis_after_header', 'genesis_do_nav' ); // add_action( 'genesis_before_header', 'genesis_do_nav' ); remove_action( 'genesis_header', 'genesis_do_header' ); function mysite_header(){ ?> <div id="title-area"><div class="wrap"?> <div class="one-sixth first mysite-title"> <h1><a href="<?php bloginfo('url'); ?>"><img src="http://mysite.com/mysite/wp-content/themes/mysite_theme/images/mysite-logo.png" width="250" class="mysite-logo" title="<?php $bloginfo = get_bloginfo( $show, $filter ); echo $bloginfo; ?>" /></a></h1> </div> <div class="four-sixths mysite-nav"> <nav class="nav-primary" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <div class="mysite-nav-wrap nav-primary"> <?php wp_nav_menu( array( 'theme_location' => 'first-menu', 'container_class' => 'genesis-nav-menu' ) ); ?> </nav> </div> <div class="one-sixth mysite-contact-info"> <p><span class="contact-number">Call Us</span><br />XXX-XXX-XXXX</p> </div> </div> </div> <?php } add_action( 'genesis_header', 'mysite_header' );
That works well enough. I don't think it's ideal, or Genesis "proper". I think I may have found the start for the solution on your site, so thanks for that!
I'm really trying to get my head around the logic of how Genesis is put together, and I've not found a lot of resources for that unfortunately. I wish there was a course of some kind that taught you how to do this, instead of having to hack your way though things. If anyone knows of something like this, please let me know - maybe I'm missing something.
August 24, 2015 at 11:04 am in reply to: Custom Navigation and Header Area in Genesis Framework #163315roborracleMemberHi Brad - I'm simply trying to remodel the header area with the logo and main nav to be output in the same HTML region. The code above isn't really different than what I've got now.
Hi Brad - I'm simply trying to remodel the header area with the logo and main nav to be output in the same HTML region. The code above isn't really different than what I've got now.
function my_header(){ ?> <div id="title-area"><div class="wrap"?> <div id="my-title"> <h1><img src="http://mysite.com/mytheme/wp-content/themes/themename/images/logo.png" width="250" class="my-logo" title="<?php $bloginfo = get_bloginfo( $show, $filter ); echo $bloginfo; ?>" /></h1> </div> <div id="my-nav"> <nav class="nav-primary" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <div class="my-nav-wrap"> <!-- problem is right here - same as it was last time --> <?php add_action( 'genesis_do_nav' ); ?> <!-- everything else works --> </div> </nav> </div> </div> </div> <?php }
August 21, 2015 at 10:09 am in reply to: Custom Navigation and Header Area in Genesis Framework #163082roborracleMemberNo, unfortunately I never found a solution to this. In fact, I'm back looking again for the solution for a new project.
October 31, 2013 at 8:42 am in reply to: Custom Navigation and Header Area in Genesis Framework #70113roborracleMemberanyone?
-
AuthorPosts