Customize The Header in Genesis Daily Dish Pro Child Theme

genesiswp
wordpress

(Simeon Udoh) #1

Hello guys! I’m here again and I look forward to getting my issue resolved.

I have been Customizing my blog recently, thanks to WordPress genesis tutorials by App Shah, I’ve added cool navigation buttons, Scroll to top amongst others.

But… Now I still need help to further customize my theme header.

By default, My header image has its own section but I want a crunchify-like header and Primary Menu on SAME LINE .

Header at the left, Menu at the right on SAME Line. MY Blog url is www.techviber.com (You’ll see a custom header section

PS: I’ve tried this article here ( https://amethystwebsitedesign.com/add-logo-on-top-of-navigation-menu-in-a-genesis-child-theme/ ) and it worked but The space for header was still there but blank because It was moved with css stated in the tutorials.

So What do I want actually?
I want to move my header to The primary menu and remove the header space that will be left after moving header to menu. For short… I want it to be as it is on https://crunchify.com. Thanks again!


How to create a Blog post ribbon
(App Shah) #2

Sure. I’ll take a look at this in couple of days and update. Hope to see some update from other Crunchify Users too :slight_smile:


(App Shah) #3

hey Simeon. I just tried visiting your site but seems it’s not accessible. Could you update me once it’s back. I want to look at CSS code.


(Shashank Bhattarai) #4

I have tried same thing but error occurred while i am trying to edit theme locally…!! If Arpit Can share his piece of code for the navigation may be it would be fixed :smiley:


(App Shah) #5

Hi Shashank -

I’ve added below to my functions.php file. Hope that works.

//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_header', 'genesis_do_nav', 12 );

//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 12 );

//* Remove output of primary navigation right extras
remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 );
remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 );

//* Reduce the secondary navigation menu to one level depth
add_filter( 'wp_nav_menu_args', 'eleven40_secondary_menu_args' );
function eleven40_secondary_menu_args( $args ){
	if( 'secondary' != $args['theme_location'] )
	return $args;
	$args['depth'] = 1;
	return $args;
}

(Shashank Bhattarai) #6

Thanks man Worked :slight_smile:


(App Shah) #7

You are welcome. Glad it worked for you :slight_smile:


Copyright © 2018 Crunchify, LLC.  •  WordPress Services  •  Contact  •  Hosted at DiscourseHosting.