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

How to make sub-menu in Primary menu bar visible?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-26-2016, 09:20 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default How to make sub-menu in Primary menu bar visible when hovered upon?

Hello,
Our primary menu's background is green (#005D57) with white letters. But the background of our sub-menu to the primary menu is white, with white letters. So, we can't see anything in the dropdown menu. See the "Photo Gallery" dropdown menu, which should show 2 sub-menus.

At the moment, we have the codes below in Custom CSS, but don't know what else to add to make the dropdown menu visible on hover. 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;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff !important;
background-color: #005D57;
}

.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;

}




Thank you.
John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
  #2  
Old 04-27-2016, 12:00 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How to make sub-menu in Primary menu bar visible?

Hello John,

Please can you share a link to your website? This may help us to understand what are your CSS rules and how these should be tweaked.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 04-27-2016, 12:07 AM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default Re: How to make sub-menu in Primary menu bar visible when hovered upon?

Hi Alex,
We are new to this. Is it this link you are after?

If not, please let me know what information you need.

The problem is with the "Photo Gallery" drop-down menu.

(You and Igor also helped us previously with this thread re global changes to background colour and font: https://forum.x-cart.com/showthread.php?t=73850.)

John
__________________
John
XCart Business v.5.4.1.48
Reply With Quote
  #4  
Old 04-28-2016, 10:14 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: How to make sub-menu in Primary menu bar visible?

Code:
.navbar-inverse { background-color: #005D57; border-color: #005D57; color: #ffffff !important; }
This rule makes the font color white.
Add the following to your custom CSS to amend
Code:
ul#top-main-menu > li > ul > li > a { color: #333 !important; }
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
john.hodson@iinet.net.au (04-28-2016)
  #5  
Old 04-28-2016, 03:36 PM
 
john.hodson@iinet.net.au john.hodson@iinet.net.au is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 68
 

Default Re: How to make sub-menu in Primary menu bar visible? (Solved)

Fantastic, it works! Thank you very much Igor.
Have a good weekend.
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 12:15 PM.

   

 
X-Cart forums © 2001-2020