- This topic has 10 replies, 5 voices, and was last updated 11 months ago by
Leo.
-
AuthorPosts
-
February 22, 2017 at 4:01 pm #282712
Dave
Hey Tom,
Looking at this documention, I implemented the CSS to open sub-menus to the left:
https://docs.generatepress.com/article/navigation-dropdown/
However, I’m looking to only apply that to the furthest right drop down menus, not to all of them. The far right ones go off screen so I’d like them to open to the left. The others, I’d like to have them open like they are set to in default, to the right. Is that possible?
Thanks!
– DaveGeneratePress 1.3.44GP Premium 1.2.94February 22, 2017 at 5:22 pm #282734Leo
StaffCustomer SupportHi Dave,
First add
open-left
to the Custom Classes field for the far right menu item:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classesThen replace the CSS from the doc page with this:
.dropdown-hover .main-navigation ul .open-left ul { left: auto; right: 0; } .dropdown-hover .main-navigation ul .open-left ul ul { left: auto; right: 100%; } .dropdown-hover .main-navigation .main-nav ul .open-left ul li.menu-item-has-children > a { padding-left: 0; padding-right: 20px; } .dropdown-hover .main-navigation ul .open-left ul .menu-item-has-children .dropdown-menu-toggle { float: left; padding-left: 20px; padding-right: 15px; } .dropdown-hover .main-navigation .open-left .children .dropdown-menu-toggle:before, .dropdown-hover .main-navigation .open-left .sub-menu .dropdown-menu-toggle:before { content: "\f104"; }
Let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/February 22, 2017 at 5:40 pm #282739Dave
Aw wow I should have known that. Thank you Leo!
February 22, 2017 at 5:41 pm #282740Leo
StaffCustomer SupportWasn’t easy for me either haha You’re welcome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 14, 2017 at 5:47 am #333390Jay Martin
Might I suggest this solution be added to the KnowledgeBase article referenced by the OP?
I came upon that great page yesterday, but it took quite a while using Search to find this more appropriate solution.
Thanks!
June 14, 2017 at 8:47 am #333494Leo
StaffCustomer SupportI agree π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 14, 2017 at 9:25 am #333519Tom
Lead DeveloperLead DeveloperDone π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 14, 2017 at 9:26 am #333521Jay Martin
Outstanding, thanks for the fast response.
June 14, 2017 at 9:27 am #333523Tom
Lead DeveloperLead DeveloperThanks for the suggestion π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 19, 2020 at 9:53 am #1170667litesprint
Hi Dave,
First add open-left to the Custom Classes field for the far right menu item:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classesThen replace the CSS from the doc page with this:
This doesn’t seem to work anymore when dropdown is set to the right in Customizer. Only the icon moves to the left, but the dropdown still opens to the right (and gets cut off). Reverted it back to the original.
Update: Works now. Used the CSS from the documentation article and added the custom class manually.
February 19, 2020 at 5:09 pm #1170987Leo
StaffCustomer SupportHi there,
Any chance you can open a new topic for this as this one is really old?
Make sure to implement this method here and link us to the site in question if it still doesn’t work:
https://docs.generatepress.com/article/navigation-dropdown/#opening-specific-sub-menus-to-the-leftThanks π
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.