- This topic has 14 replies, 4 voices, and was last updated 7 years, 6 months ago by
David.
-
AuthorPosts
-
August 6, 2017 at 3:25 am #360464
Amit
In the mobile view on my site thevacuumbuddy.com, the items are displayed to the extreme left. How can they be displayed to look better?
August 6, 2017 at 4:52 am #360481Garth Dryland
You could try this
/* Centralize the mobile-header menu items */ @media (max-width: 768px) { .main-navigation .main-nav li { text-align: center !important; } }August 6, 2017 at 5:51 am #360497Amit
That worked like charm. One more thing I feel should improve is the space between search icon and menu button as they seem closer.
August 6, 2017 at 6:08 am #360507Garth Dryland
Maybe try the menu item width setting in customize / layout / primary navigation
August 6, 2017 at 6:29 am #360518Amit
Thanks for the quickie. Got the thing. GP is really an awesome theme and I am coming up great pagespeed scores on this website…
August 6, 2017 at 9:03 am #360561Leo
StaffCustomer SupportThanks Garth!
August 17, 2017 at 5:59 am #367905Amit
After the update to new theme and premium plugin, this code is not working! What’s the catch?
August 17, 2017 at 8:24 am #367991Leo
StaffCustomer SupportTry this instead:
@media (max-width: 768px) { .main-navigation .main-nav ul li a { text-align: center !important; background-color: #ffffff; } }August 17, 2017 at 11:53 am #368177Amit
Did the work Leo. Another thing that I am facing is the drop down menu background issue in transparent navigation. The menu items are overlapping the content which looks weird. Any solution to that please? Here I am talking about the fixed navigation and not sticky as my sticky navigation is of different color.
August 17, 2017 at 3:16 pm #368317Leo
StaffCustomer SupportEdited the code here: https://generatepress.com/forums/topic/how-to-align-mobile-drop-down-menu/#post-367991
September 15, 2018 at 3:54 am #677717Amit
This code is not working now, the menu is left aligned….
September 15, 2018 at 3:55 am #677719Amit
I guess the new version of theme is not valid for this code.
September 15, 2018 at 4:03 am #677723David
StaffCustomer SupportHi there,
is this on the vacuumbuddy site?
September 15, 2018 at 4:06 am #677728Amit
Nope, now on friedcoffee.com
September 15, 2018 at 4:18 am #677741David
StaffCustomer SupportOk we can keep it on that topic and i will have a look. Chances are its a caching issue as i did not see that when working on the mobile header. Try clearing browser caches.
-
AuthorPosts
- You must be logged in to reply to this topic.