Home › Forums › Basel support forum › Menu customization
Menu customization
- This topic has 22 replies, 3 voices, and was last updated 7 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 25, 2017 at 8:34 am #20145
despina.minaParticipantHello,
since i have many categories in 2 words,i would like to make them appear like this (one word under the other),so that they fit well.Is it possible?September 25, 2017 at 9:51 am #20156
Artem TemosKeymasterHi,
Where exactly on your website do you want to do this?
Regards
September 25, 2017 at 9:56 am #20157
despina.minaParticipantIn the header menu
September 25, 2017 at 11:52 am #20162
Bogdan DonovanKeymasterTry to add the following code snippet to the Custom CSS area in Theme Settings to fix this issue.
.main-nav .menu > .menu-item { vertical-align: middle; } .main-nav .menu > .menu-item > a { max-width: 110px; line-height: 20px; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; text-align: center; align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; -ms-flex-wrap: nowrap; flex-wrap: nowrap; } header.act-scroll .main-nav .menu > li > a { line-height: inherit; }
Regards
September 25, 2017 at 12:52 pm #20168
despina.minaParticipantIs much better now,thank you.
I want to make it like this menu.
So i want to set a color only in the menu(not in all header) and separators with a different color,so that every part in menu will be distinctive.September 25, 2017 at 1:09 pm #20170
despina.minaParticipantSeptember 25, 2017 at 2:07 pm #20178
Artem TemosKeymasterSorry, but these requests need more complicated customization and it is out of our theme support scope.
September 25, 2017 at 2:26 pm #20180
despina.minaParticipantMy second question is customization?
There is not the possibility to create a submenu that opens only in mouse over?September 25, 2017 at 4:06 pm #20192
Artem TemosKeymasterNo, but we see that you have already created menu items with dropdowns. Do you need additional help for this?
September 25, 2017 at 8:51 pm #20210
despina.minaParticipantLike i said you i want to make the same in submenu.So below the subcategory i want to create a menu item that opens only when i see this particular subcategory.Now are all the items always open.
September 26, 2017 at 6:06 am #20219
Artem TemosKeymasterUnfortunately, there is no such feature in our menu. If you create a mega menu dropdown, it can’t have subitems that will be displayed on hover.
September 26, 2017 at 6:19 am #20223
despina.minaParticipantAnd also is not possible to set a different color in the header menu?
September 26, 2017 at 7:20 am #20236
despina.minaParticipantHello,i could change the menu color,but now is visible that with the code that you gave me above,some categories do not fit correctly.screenshot
What should I change in this code?September 26, 2017 at 9:04 am #20253
Bogdan DonovanKeymasterHello,
You can increase
max-width
parameter for all menu items in the previous snippet. Or you can specify max width for an individual menu item by pointing his id. For example, if your menu id is125
, CSS code snippet will look like this..main-nav .menu > .menu-item.menu-item-125 > a { max-width: 125px; }
You can find menu id from the developer tools – screenshot.
September 26, 2017 at 9:56 am #20257
despina.minaParticipantHello,
i have tried but by increasing the max-width parameter,it does not fit the whole menu,because remains an empty space to the right.There is a way to make the menu full width?
See hereSeptember 26, 2017 at 11:13 am #20265
Artem TemosKeymasterYes, but there is no other solution for your request. Try to decrease the number of menu items to make them fit the space for the navigation.
September 26, 2017 at 11:32 am #20269
despina.minaParticipantI don’t want decrease the number,because are products categories,so is impossible!
If i make the menu full width,then the menu item that does not fit now,it will fit.September 26, 2017 at 11:58 am #20271
Artem TemosKeymasterBut they may not fit on devices with smaller screens.
September 26, 2017 at 12:27 pm #20275
despina.minaParticipantCan we try please?
Which is the code?September 26, 2017 at 1:34 pm #20276
despina.minaParticipantHello,
i have found solution with this code:
.main-nav .menu>li>a {
padding-left: 5px;
padding-right: 5px;
}September 26, 2017 at 2:32 pm #20281
Artem TemosKeymasterYes, this code can free some additional space but decrease margin between items.
September 27, 2017 at 3:22 pm #20354
despina.minaParticipantHello again.
Since i have created submenu,the arrows for the main elements with one word do not fit.
I tried to increase max-width parameter for these elements,but nothing happens.
See here
Thank youSeptember 27, 2017 at 4:25 pm #20359
Artem TemosKeymasterIt happens because you have changed
padding-right
parameter for your links to5px
. You need to increase it. -
AuthorPosts
- You must be logged in to create new topics. Login / Register