- This topic has 13 replies, 2 voices, and was last updated 2 years, 7 months ago by Ying.
-
AuthorPosts
-
September 16, 2021 at 10:46 am #1932932ammgbr
Hello two Qs re the mobile version of off canvas menu set in the overlay mode.
1. How could I have the menu items in the left hand side rather than centrally and without the vertical line by their side?
2. How could I remove the MENU writing and just have the menu icon?
GP Premium: 2.0.3
September 16, 2021 at 11:47 am #1932990YingStaffCustomer SupportHi Polyvios,
For question 1, can you link us to the site in question?
You can use the private information field.
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationFor question 2, go to Customizing > Layout > Primary Navigation, remove the
Mobile Menu Label
.Let me know π
September 16, 2021 at 11:50 am #1932996ammgbrThank you
Yes link providedSeptember 16, 2021 at 12:12 pm #1933024YingStaffCustomer SupportGive this CSS a try:
#generate-slideout-menu.do-overlay .slideout-menu li { float: none; width: 100%; clear: both; text-align: left !important; } .slideout-navigation.do-overlay .menu-item-has-children .dropdown-menu-toggle { border-left: none !important; }
Let me know π
September 16, 2021 at 12:21 pm #1933037ammgbrI tried that but did not work
September 16, 2021 at 12:37 pm #1933053YingStaffCustomer SupportI don’t see the second part has been added to your site yet, can you confirm?
I’ve edited the CSS here:
https://generatepress.com/forums/topic/off-canvas-menu-overlay/#post-1933024Let me know π
September 16, 2021 at 12:55 pm #1933059ammgbrStill does not work
I want the off canvas menu to appear on mobile only. On desktop view I only want the primary navigation menu – apologies I should have clarified that earlier
I managed the second part – removed the ‘menu’ and only have the icon on mobile
September 16, 2021 at 2:07 pm #1933112YingStaffCustomer SupportThe CSS you added is still the old one, hasn’t been updated:
https://www.screencast.com/t/PzWdyxquTBIAnd I still don’t see this part of CSS on your site yet:
.slideout-navigation.do-overlay .menu-item-has-children .dropdown-menu-toggle { border-left: none !important; }
Have you cleared cache?
September 16, 2021 at 2:19 pm #1933117ammgbrCache cleared.
This is all the code I have in my CSS:
*deleted*
September 16, 2021 at 2:58 pm #1933137YingStaffCustomer SupportYou are missing a
}
afterdiv#page { padding-top: 50px;
September 16, 2021 at 3:01 pm #1933139ammgbrOh – many thanks π
It works
Re layout how could I tidy it up?
1) The the exit icon X is in the middle of the screen just above the menu items so it is a bit distracting. Is it possible to have it on the right upper corner – would look more slick
2) The same for the different menu items dropdown icons – could they be on the far right side, all aligned at the same level?
3) When selecting each menu item the background changes to green but partially – could the whole row change colour to green when the menu item is selected?
The arrangement a bit like the mobile version of the ft.com menu
Apologies for the requests – these are small things but would massively improve the navigation layout
September 16, 2021 at 3:16 pm #1933146YingStaffCustomer SupportTry this CSS:
.slideout-navigation.do-overlay .slideout-exit { justify-content: flex-end; display: flex; width: 100%; } .slideout-navigation.main-navigation .main-nav ul li a { display: flex; justify-content: space-between; }
September 16, 2021 at 11:41 pm #1933377ammgbrThank you that works π
September 17, 2021 at 10:34 am #1934011YingStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.