Archived topic
Menu positioning
9 replies · Started by Radek on January 21, 2020
Hello, what is best way to positioning menu like this
? Thank you.
Hi there,
What exactly would that dark area be? A page hero? The site header?
Let me know :)
Hi Tom. I don´t know. It depends what gets better. Looking for solution GPP + no builder. I don't know all the possibilities of elements, but I think I can't use merge function because of white area behind site logo or I'm wrong ? Or I must use merge to positioning menu to bottom right ? What about white header area then ? Really need help with this :) Thank You very much.
Hi there,
will the background to the 'dark area' be the same throughout the site ? Or will it change e.g use the Featured Image?
Hi David, I think it'll be on static pages only, so I can set images manually. But better be prepared for both ;)
And the UVOD text is that variable? e.g Page title?
Yes. I added testing website URL to first post, so we can play about that there ;)
Looks like you sorted it ?
I just used Your code:
add_action( 'after_setup_theme','craig_move_navigation' );
function craig_move_navigation() {
remove_action( 'generate_after_header', 'generate_add_navigation_after_header', 5 );
add_action( 'generate_after_header', 'generate_add_navigation_after_header', 15 );
}
and then added to CSS:
.main-nav {
margin-top: -65px
}
Is it clean solution ?
Its a good and very simple solution :)
Thanks for sharing