- This topic has 28 replies, 4 voices, and was last updated 4 years, 1 month ago by David.
-
AuthorPosts
-
June 13, 2018 at 1:45 pm #599404Mike
Hello,
That worked! But is there any way I can do the same to the search icon? Preferably all in the same CSS that targets everything, meaning if I decide to add the woo commerce cart I dont need to add more CSS.
Thanks for the help so far! Much appreciated!
Thanks,
MikeJune 13, 2018 at 2:04 pm #599418LeoStaffCustomer SupportLet’s try using flexbox:
https://generatepress.com/forums/topic/horizontal-sub-menu/#post-599210June 13, 2018 at 2:08 pm #599424MikeHello,
Hmmm, its getting there. That now seems to be really crushed up.
Need more spacing between the search and menu tags… also I think the sub menu should be a little wider, it seems crushed together.
Thanks,
MikeJune 13, 2018 at 2:46 pm #599451LeoStaffCustomer SupportAre you sure you want everything centered?
You mentioned that you prefer the default layout which isn’t centered when you have other icons:
http://www.screencast.com/t/Ikdl3ue022I think that would look better.
June 13, 2018 at 2:55 pm #599463MikeHello,
Hmmm, now im confused. Before we started and not messed with any CSS, was my menu over to the left like that? I seem to remember it center, maybe I have seen it so much I am delusioning!
To the left actually seems alright, how would we impliment that?
I basically just want our inital changes to only have impacted the desktop and tablet versions of the site.
Thanks,
MikeJune 13, 2018 at 3:47 pm #599493LeoStaffCustomer SupportIt’s centered if you don’t have navigation search (or WooCommerce cart) activated.
But when there are more than one element in the header, then they are split into left and right by default (because it looks better in our opinion)
Try this CSS to move the toggle to the left:
@media (max-width: 768px) { .menu-logo .main-navigation:not(.mobile-header-navigation) .menu-toggle { float: left; } }
June 13, 2018 at 3:56 pm #599498MikeHello,
Is there any way I can remove the primary menu nav logo on mobile? It seems that is interfering and pushing the menu slightly over to the right.
I have also added the following code to give the whole top bar some bottom padding,
#site-navigation{ padding-bottom: 15px; }
Thanks,
MikeJune 13, 2018 at 4:00 pm #599501LeoStaffCustomer SupportTry:
@media (max-width: 768px) { .site-logo.navigation-logo { display: none; } }
June 13, 2018 at 4:03 pm #599503MikeAlright! Thats looking a LOT better than when we started! Thanks! Next question, how do I add padding to the top of the sub menu? It seems a little close to the buttons.
Thanks,
MikeJune 13, 2018 at 4:05 pm #599512LeoStaffCustomer SupportCan you open a new topics for separate questions?
I would like to mark this one as resolved 🙂
Thanks!
June 13, 2018 at 4:08 pm #599515MikeSure! Will do it now.
Thanks for all your help with this!
Mike
June 13, 2018 at 4:09 pm #599516LeoStaffCustomer SupportNo problem!
February 26, 2020 at 5:51 pm #1178123zhuI want the sub-menu in the menu to be displayed horizontally.It is a pity that the shown as the picture (http://best-badge.com/wp-content/uploads/2020/02/best-bagdge.png) after I add the CSS .I want to make it only in one line, and then I only need this sub-menu to display horizontally, other sub-menus in the main menu do not need.
February 27, 2020 at 2:27 am #1178373DavidStaffCustomer SupportHi there,
i see you have raised a new topic we will respond there.
-
AuthorPosts
- You must be logged in to reply to this topic.