Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Sub-menu in primary menu cannot be seen

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-24-2016, 07:29 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default Sub-menu in primary menu cannot be seen

Hello,

The background of our primary menu is green (#005D57) with white letters, and previously with the help of this forum, we managed to change the Custom CSS so that the background of our sub-menu to the primary menu when hovered upon was green, with white letters. https://forum.x-cart.com/showthread.php?t=73901

It worked until just recently when we realised that, for some reason, the sub-menu background as well as the letters became all white, hence we now cannot read anything in the sub-menu. (See the "Photo Gallery" dropdown menu in www.sportingoutbacksupplies.com.au, which should show 2 sub-menus.)

At the moment, we have the codes below in Custom CSS, but don't know why it worked for a couple of months and now the dropdown sub-menu is no longer working. Please, what do we need to change so that when we click on the Primary Menu, the dropdown menu is visible and shows green background (#005D57) with white letters (#ffffff)?

/**
* Top menu main block styling
*/
.navbar-inverse {
background-color: #005D57;
border-color: #005D57;
color: #ffffff !important;
}
ul#top-main-menu > li > ul > li > a {
background-color: #005D57 !important;
color: #ffffff !important;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff !important;
background-color: #005D57 !important;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #ffffff !important;
background-color: #005d57 !important;
}

Thank you in advance.

Cheers,
John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
  #2  
Old 08-26-2016, 08:41 AM
 
Triple A Racing Triple A Racing is offline
 

X-Wizard
  
Join Date: Jul 2008
Location: Manchester UK
Posts: 1,028
 

Default Re: Sub-menu in primary menu cannot be seen

Hello John

Long story short... The upgrade to 5.2.16 added changes via Simple CMS and these changes can have an effect on menus like yours (and ours). We saw these in advance on our Dev store, together with some other upgrade challenges, so we initially ran XC Tickets with good results, but then added / changed some things ourselves afterwards, in order to produce a final setup, which was then added to our Live store.

Our final Top Menu CSS changes are shown below FYI. We apply these via Custom Skin, but it's fine via Custom CSS too. We're pretty sure that the Sub Menu section is what you'll probably need to look closely at, in order to solve your "White Death" sub-menu challenge. Don't forget to clear the browser cache each time you review your CSS updates just in case...

Code:
/* Top Main Menu, colour and style */ .navbar-inverse { background-color: #000000; border-color: #ffffff; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: #58585a; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #363636; }
Code:
/* Top Main Menu > Sub Menu, colour and style */ .top-main-menu li li span.primary-title, .top-main-menu li li a:link, .top-main-menu li li a:visited { color: #ffffff; } .top-main-menu li li, .top-main-menu li li a:active, .top-main-menu li li a:link { background: none repeat scroll 0% 0% #676767; } .top-main-menu li li a:hover { background: none repeat scroll 0% 0% #363636; }
__________________
Dev Store & Live Store XC Business 5.4.1.35
Server; Ubuntu 22.04.2 LTS (HWE 6.2.0.26.26 Kernel)) / Plesk Obsidian
Nginx 1.20.4 / Apache 2.4.52 (Ubuntu Backported) / MariaDB 10.11.4 / PHP 7.4.33
Reply With Quote

The following 2 users thank Triple A Racing for this useful post:
john.hodson@iinet.net.au (08-26-2016), qualiteam (08-31-2016)
  #3  
Old 08-26-2016, 08:12 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Smile Re: Sub-menu in primary menu cannot be seen

Thank you very much. Think you have solved our "White Death" sub-menu issue. (We thought Customs CSS was safe from any version updates.)

Thanks again.

Cheers,
John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:27 AM.

   

 
X-Cart forums © 2001-2020