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

CSS For main menu

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-31-2016, 10:43 AM
 
NockingPoint NockingPoint is offline
 

Member
  
Join Date: Oct 2016
Posts: 10
 

Question CSS For main menu

Hi!

I'm having some troubles trying to modfy the CSS of my main menu,
I'm using Look & Feel > Custom CSS feature.

First: I've modify the normal nav bar (was grey and white letters) but when I do it then I can see a border (I took all borders from nav bar class) Img 1. Then I have make that on Hover I have letter changing and border bottom, (Img1.) But when I see the Sales Section It doesn't change (Img2.) and I can't figure out what is that I have to change to make this same as the others..
(I have changed the Span and class that it has and nothing happens)

Img 1.Click image for larger version

Name:	hover coming soon.png
Views:	154
Size:	2.6 KB
ID:	4734



Img2.Click image for larger version

Name:	hover sales.png
Views:	156
Size:	3.4 KB
ID:	4735


Is there any another way (other than Look and Feel Feature) to change the style that I want to give to the page? And if so. Could you comment it so I can try it ?

Thanks for the help!
__________________
NockingPoint - :3
Reply With Quote
  #2  
Old 11-01-2016, 08:29 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: CSS For main menu

Is the site available from Internet? It would help a lot if we can check its source code.

Also, do you use the "Inspect this element" function built into modern browsers? It can show you where the wrong CSS rules are coming from. Before using the function it makes sense to disable the widget cache and the CSS & JS aggregation (Look & Feel -> Performance).
__________________
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 11-02-2016, 04:36 AM
 
NockingPoint NockingPoint is offline
 

Member
  
Join Date: Oct 2016
Posts: 10
 

Default Re: CSS For main menu

Alex Thanks for the response,

No, it's not online yet because I'm trying to first figure out how to use x-cart, Yes I've been using "inspect element" feature but when I see the specific css for the element I don't see where the ":hover background:grey"(example) is..

disable widgets? Okey, I will do that first then...

Thank you,
__________________
NockingPoint - :3
Reply With Quote
  #4  
Old 11-02-2016, 05:19 AM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: CSS For main menu

Not widgets. You should disable the cache that stores the HTML code of widgets and the CSS & JS aggregration function.
All these settings are on the Look & Feel -> Performance page.
Reply With Quote
  #5  
Old 11-02-2016, 06:26 AM
 
NockingPoint NockingPoint is offline
 

Member
  
Join Date: Oct 2016
Posts: 10
 

Default Re: CSS For main menu

Salva!
Thanks for the response!
I did that and for now is going well! hahaha x)

Thanks for the help guys!

EDIT:

I could manage to change the full navbar... The only problem that it is still there, is that when I hover over the ul in Sales or My Account the buttons turns background to grey (Like the default behavior).. How can I change this?

Here's an image of what happens (this is when I hover over Sale or Bestsellers buttons):

Click image for larger version

Name:	listado.png
Views:	153
Size:	2.1 KB
ID:	4738
__________________
NockingPoint - :3
Reply With Quote
  #6  
Old 11-06-2016, 11:44 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: CSS For main menu

Here is the CSS rule that adds the background (and that you are to override to remove it):
Code:
.top-main-menu>li>span.primary-title.tap, .top-main-menu>li>a.tap, .top-main-menu>li:hover>span.primary-title, .top-main-menu>li:hover>a { background-color: #363636; }

You can simulate the :hover effect in the Google Chrome's developer toolbar.
Please check the attached screenshot.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	152
Size:	44.4 KB
ID:	4741  
__________________
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
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 04:47 AM.

   

 
X-Cart forums © 2001-2020