This topic contains 9 replies, has 2 voices, and was last updated by Leo 1 year, 1 month ago.
-
AuthorPosts
-
January 13, 2018 at 1:46 pm #470236
JeffHello,
When using the following CSS, I’m unable to view the primary navigation menu pages while in mobile.
.custom-fixed-header {
position: fixed;
top: 0;
width: 100%;
z-index: 2000;
}
.custom-fixed-header + * {
padding-top: 120px;
}When I remove the CSS I’m able to view the menus while in mobile, but then the header is no longer fixed/sticky.
I also used the following hooks.
Before Header area:
After Header area:
Thank you for the help!
-Jeff
January 13, 2018 at 4:29 pm #470292
Leo Customer SupportHi Jeff,
Any reason you need to use that CSS?
Should be able to achieve the same layout using this method here:
https://docs.generatepress.com/article/navigation-logo/#navigation-as-headerDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 14, 2018 at 10:52 am #470804
JeffHi Leo,
Thank you for the quick response. I found the CSS in a similar support post and gave it try. It worked with the exception of the mobile navigation menus not being visible
https://generatepress.com/forums/topic/how-can-i-create-a-fixed-header-and-top-menu-in-the-generate-press-theme/#post-31579I followed the instructions on the page from the link you provided and the changes seem to work with one caveat. The navigation logo is now to close to the menu buttons and I’m having trouble figuring out how to widen the space between them. I would like to be able to keep the menu buttons approximately where they are and move the logo further to the left side of the container. Can I alter following CSS to do that? I tried imputing different numbers in the “left: 0:” field without success.
.main-navigation .site-logo.navigation-logo {
position: absolute;
left: 0;
top: 0;
}I appreciate the support.
-Jeff
January 14, 2018 at 1:36 pm #470891
Leo Customer SupportIs the navigation location set to above or below header as the article suggested?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 14, 2018 at 4:57 pm #470975
JeffLeo,
No, I currently have it set it to float right.
I did try both above and below the header. However, I want my primary navigation menus within the header and aligned with the logo. Do I still need to select the primary navigation location to either be set to above or below the header?
Thanks,
-Jeff
January 14, 2018 at 7:40 pm #471029
Leo Customer SupportYes – Set it to below header and align left should do it.
This site is using the same method.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 15, 2018 at 7:57 am #471448
JeffLeo,
That works, but now the header image is no longer viewable. Any suggestions?
Thanks,
-Jeff
January 15, 2018 at 8:34 am #471492
Leo Customer SupportTry uploading a background image to the navigation.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 15, 2018 at 8:51 am #471508
JeffThat works, but how do I adjust the image location?
January 15, 2018 at 11:32 am #471637
Leo Customer SupportI would recommend cropping the image using WordPress Edit Media so you have better control for it.
https://codex.wordpress.org/Edit_MediaYour navigation container is currently 1100 x 111px.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
You must be logged in to reply to this topic.