This topic has 12 replies, 3 voices, and was last updated 9 years, 7 months ago ago by Brian Johnson
Hello,
I tried to change width of main menu by adding (menu-full-width) to css-class. Nothing change. When I enter (menu-full-width menu-column3-4…) width changed by entered column width.
Also I tried to change color of menu by changing code of custom.css which is enabled by instruction. But no changes in menu color. Please help me.
Credentials is attached.
Hello,
For clarify. Do you want to get full width for submenu? http://prntscr.com/6r8vpb
Maybe provide screenshot for our better understanding and highlight what exactly you want.
Regards,
Robert Hall.
Yes, you are right. I want full width submenu and change color of menu and submenu.
Do you want this only for single menu item or every first-level sub-menu should have 100% width?
With best regards
Brian Johnson
For second item of menu.
Screenshot is enclosed.
Please put this code into the custom.css:
@media screen and (max-width: 1200px){
.nav-sublist-dropdown {left:-00px !important; margin-top: 0!important;background:transparent!important;}
.nav-sublist-dropdown .container{transform:translate(-45%,-10%);
width:1215px!important;display:block!important;background:white!important;padding: 25px 30px 15px 30px!important;}}
@media screen and (min-width: 1200px){
.nav-sublist-dropdown {left:-00px !important; margin-top: 0!important;background:transparent!important;}
.nav-sublist-dropdown .container{transform:translate(-60%,-10%);
width:1215px!important;display:block!important;background:white!important;padding: 25px 30px 15px 30px!important;}}
How to create custom.css you may watch here.
With best regards
Brian Johnson
Thank you.
The code also changes third item of main menu. I need change only second item to full width.
While it’s imposible as wrote in documentation – by adding [menu-full-width] to main menu item?
And how I can change color of menu?
Please use this code(only for second element):
@media screen and (max-width: 1200px){
.menu-item-20631 .nav-sublist-dropdown {left:-00px !important; margin-top: 0!important;background:transparent!important;}
.menu-item-20631 .nav-sublist-dropdown .container{transform:translate(-45%,-10%);
width:1215px!important;display:block!important;background:white!important;padding: 25px 30px 15px 30px!important;}}
@media screen and (min-width: 1200px){
.menu-item-20631 .nav-sublist-dropdown {left:-00px !important; margin-top: 0!important;background:transparent!important;}
.menu-item-20631 .nav-sublist-dropdown .container{transform:translate(-60%,-10%);
width:1215px!important;display:block!important;background:white!important;padding: 25px 30px 15px 30px!important;}}
This element should be the second in menu. In case you want to change this position this code should be adjusted a bit.
Sorry default full-width option expands only to 5 column.
With best regards
Brian Johnson
Thank you, Brian.
How I can change color of menu and submenu?
Please find these lines in previous code background:white!important
value and change it to another(pink/yellow/red/green). You may use color picker to select preferable color and replace it.
With best regards
Brian Johnson
Thank you.
You are welcome!
With best regards
Brian Johnson
Tagged: best selling, color, customization, main menu, themes, width, woocommerce
The issue related to '‘Changing main's menu width and color’' has been successfully resolved, and the topic is now closed for further responses