Jump to content

[SOLVED] Replacing Top Nav items with images


Recommended Posts

Well, after hour of playing with first-child, I realized that "HOME" is category. So, when I change

.sf-menu:first-child a

I actually change all elements of nested list.
I tried all possible combinations with :first-child, and results are, well, lets say that it is good that site is still not launched :rolleyes: ...

I will hapilly accept any new ideas.

Link to comment
Share on other sites

  • 2 weeks later...

hello

 

sorry for late reply :(

 

on top horizontal menu configuration page you can:

 

1

define own link in the "Add menu Top link" form:

fOqWRr7.png

 

 

2

 

then remove all positions from right hand side box

 

cAQcB33.png

 

 

3

 

then add new position (link that you generated)

l81U4Iw.png

1) select "home"

2) click on add

3) save changes or add other categories / links that you want to display in top menu

 

 

 

 

then in in superfish-modified define styles:

EuCwbJN.png

 

.sf-menu li:first-child a {
    background:red;
}
(or use any other style you want)
 
with this method you can personalize / customize first element of menu :)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

I want home icon appear instead of home menu item only, but when I use 

.sf-menu li:first-child a {
    background:url (image url);
}
home icon appears instead of home menu item (this is correct)
and instead of first items in the drop-down menus of other menu categories
Hope I made it clear. 
So I want this home icon appear instead of home menu item only
Link to comment
Share on other sites

it's clear now thank you for link.

 

instead of :

.sf-menu li:first-child a{
background: url('../img/bg_menu_home.png')  center center no-repeat;
text-indent: -30000px;
width: 40px;
}

use  this:

.sf-menu>li:first-child a{
background: url('../img/bg_menu_home.png')  center center no-repeat;
text-indent: -30000px;
width: 40px;
}

effect:
sajmvtv.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...