Hello,
Try this CSS code.
.site-branding, .site-header-menu, .header-image {
margin-bottom: 90px;
margin-top: -80px;
}
Thanks.
Tech,
Thank you. Where abouts do I add that code. I know how to get into header php just not sure which line this replaces.
Thank you
stephen
Hello,
Please add the CSS either in a child theme or a custom CSS plugin.
I like the plugin the best,
https://ww.wp.xz.cn/plugins/simple-custom-css/
Child themes:
https://codex.ww.wp.xz.cn/Child_Themes
Thanks.
Thank you. I will get on it tomorrow.
Stephen
You are welcome. Keep us posted please. 🙂
That’s better thank you but not exactly what I was thinking sorry. Now I would like to get the menu below the header if you could help with that code?
Stephen
Hello,
Hope you are good today.
Try this CSS code.
.main-navigation .menu-item-has-children > a {
margin-right: 56px;
}
.main-navigation a {
margin-right: 30px;
margin-top: 30px;
}
Now you need to remove this style declaration.
This can be found on line 2037
.main-navigation .menu-item-has-children > a::after {
right: 0.625em;
top: 0.8125em;
}
Please let me know if this works for you.
Thanks.
I have struggled to find the code on 2037 to remove. Do I do that in appearance-editor ?
which template? also is there a view that numbers each line of code which makes it easier to find line 2037?
Stephen
Hello,
Hope you are well.
In file style.css copy in to a notepad document and go to line 2037. That should get you close to what you need.
The other option is to copy in to word and find the specific CSS I outlined above.
Thanks.
Don’t edit the theme’s files directly, as you’ll lose those changes if the theme is ever updated in the future, to fix bugs or security issues or to add new features.
But I’m not entirely sure why you need to remove that code to begin with. It doesn’t seem like it has any bearing on whether your menu is above or below your header.
Hello @stephencottontail,
Hope you are well.
Those CSS values need to be removed so the arrow for the sub menus does not float above the links. Removing these values will make the arrow align with the sub menus.
@stephencottontail is right, you should not edit files directly. You should use a child theme if at all possible.
https://codex.ww.wp.xz.cn/Child_Themes
Thanks.
@tech55541: I get that, but I didn’t see how the arrow’s position was related to the position of the menu itself. Maybe I just didn’t get it because all the CSS wasn’t there yet.
Hey there,
It is fine. That is why I use a web inspector before giving code, just to make sure it is correct.
Thanks.
Couldn’t seem to get that to do what I was trying. I followed instructions carefully but the menu remained above the header image.
Think I will just live with it for now as i can’t give over more time to it really.
Many thanks for all your help though.
Stephen
Hello,
Try adding `!important! right before the semicolon and see if that changes anything.
Thanks, have a good one.