- This topic has 70 replies, 3 voices, and was last updated 6 years, 6 months ago by Tom.
-
AuthorPosts
-
November 6, 2017 at 2:29 pm #417422Harris
Hello,
Is there some way we can achieve this menu with GP Premium?
http://themes.muffingroup.com/be/story/In our case the menu should have submenus too.
thanks!
November 6, 2017 at 10:54 pm #417560TomLead DeveloperLead DeveloperIt might be possible, but we’ll have to do it in steps.
1. Turn on the slide-out menu so it’s set to both desktop and mobile.
2. In your primary menu, make sure the theme location is set, but keep the menu empty so the icon is the only menu item.
Once that’s done, link me to the site and I’ll give you some CSS π
November 7, 2017 at 12:30 am #417598HarrisThanks for your reply Tom!
The site is still on paper. I just wanted to know if it can be done so I can start it with GP and avoid going to Be theme.
Once I will set it up I will go through the steps you provided and I will link you to the site.Not quite sure what the “theme location is set” is in step 2 but we can make it clear when the site is setup.
November 7, 2017 at 8:22 am #417859LeoStaffCustomer SupportThis should help: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#setting-a-theme-location
Lots of info on WordPress menu in that article π
November 7, 2017 at 8:26 am #417860HarrisThanks Leo. I was aware of that. Just didn’t knew it was named “theme location”.
Thanks! π
November 7, 2017 at 8:48 am #417891LeoStaffCustomer SupportNo problem π
January 29, 2018 at 12:44 pm #482900HarrisHello,
Its been a while, but its time to sort that out.
I have turn on the slide-out menu so itβs set to both desktop and mobile. (Customizer > Layout > Slide-out navigation > Both)
And in the menu settings I have set the “Display Locaion” to “Primary menu”I have also added the logo
Guess I did it right
Thanks
HarrisJanuary 29, 2018 at 12:45 pm #482901HarrisThere was a place that the url could be added, without being publicly viewed.
For some reason I can’t find it….January 29, 2018 at 3:00 pm #483002LeoStaffCustomer SupportI’ve moved your URL to the original topic π
So are you still having problem with this?
January 29, 2018 at 4:12 pm #483060HarrisTom told me that he could help me build a menu like the one mentioned in the begining using GP. He told me some initial steps and now that I have setup the site and have them done I asked him to further assist me.
January 29, 2018 at 8:47 pm #483162TomLead DeveloperLead DeveloperGive this CSS a try:
#site-navigation { position: fixed; left: 0; top: 0; height: 100%; }
January 30, 2018 at 12:46 am #483267HarrisHello Tom,
Thanks for the reply. It’s possitioned properly with the added CSS, but (obviously) it is not auto-closing when moving the mouse out of the menu.
How can that be achieved?
Additionally, what do I have to do in order to place the logo in the side menu?
And how can I remove the header but keep the side navigation?Thanks
HarrisJanuary 30, 2018 at 9:12 am #483714TomLead DeveloperLead DeveloperAh, I didn’t notice that feature. Unfortunately that would require some custom javascript right now. In GPP 1.6 we’ve re-built the slideout navigation, so it may be worth re-visiting then.
For the logo, you can try this:
add_action( 'generate_inside_slideout_navigation', 'tu_add_slideout_logo' ); function tu_add_slideout_logo() { ?> <div class="slideout-logo"> <img src="URL TO YOUR IMAGE" /> </div> <?php }
Then add this CSS:
.slideout-logo { text-align: center; margin-bottom: 20px; }
Then you can remove the header with this CSS:
.site-header { display: none; }
January 30, 2018 at 10:29 am #483789HarrisHello Tom,
Its a pitty the mouseout effect can’t be aplied at the moment. Actually that was my initial question if you take a look at the thread title π
About the rest, when I’m adding the css you provided for removing the header, the side menu is removed as well π
How can this be handled?Thanks
HarrisJanuary 30, 2018 at 3:28 pm #483987TomLead DeveloperLead DeveloperI could write the JS now, but it won’t work with the next version of GPP. If you update this topic when GPP 1.6 is released, we’ll figure out the JS.
As for the second issue, change the navigation location to after header in Customize > Layout > Primary Navigation.
-
AuthorPosts
- You must be logged in to reply to this topic.