Archived topic
customized header
3 replies · Started by Guy on May 31, 2017
Hi there.
I need to be able to split the header into 2 sections - the logo on the right, and the rest on the left - meaning - 2 places for widgets and one fot the nav.
I know css really good but I couldn't really find a way to modify the header without overwriting the core files.
I'm working with a child theme using your latesr version.
I did put some code in the hook - After Header Content -
But it still has ecerything inside the div -"inside-header".
Is there anyway I can change the order of divs? or create a wrapper around those parts that I need?
I'm attaching the image of one I want to achieve -

This is my url of the site.
My web site
Thanks!!!!
Guy
Hi there,
You can try the generate_inside_navigation hook: https://docs.generatepress.com/article/generate_inside_navigation/
Then use GP's grid system. So something like this:
add_action( 'generate_inside_navigation','lh_inside_navigation' );
function lh_inside_navigation() {
?>
<div class="grid-50 navigation-left">
Your stuff in here
</div>
<div class="grid-50 navigation-right">
Your stuff in here
</div>
<?php
}
Let me know if you need more info.
Thank you so much for your quick reply!!!
I think it's working :)
I will let you know if I will encounter more issues there...
Thanks!!!!
Guy
You're welcome :)