Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] change icon on menu 1 when you use a category instead of an static page


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 14, 2012, 02:11 PM
esbrinartot
 
12 posts · Nov 2012
I want to change icon of the menu 1.

When I use an static page I can change it. But if I use a category instead of an static page there is always the star. The code that I introduce is next:

/* Part 1- for default state: */
#menu1 .cat-?cat=12 > a > i { background-position: 0px -1824px; }

/* Part 2 - for hover state: */
#menu1 .cat-?cat=12:hover > a > i, #menu1 .cat-?cat=12.active > a > i { background-position: -24px -1824px; }
  #2  
Old Dec 15, 2012, 05:44 AM
juggledad's Avatar
juggledad
 
21,712 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
change your permalinks to something other than the defaults
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Dec 15, 2012, 06:33 AM
esbrinartot
 
12 posts · Nov 2012
My permalinks are and was:
/%year%/%monthnum%/%day%/%postname%/

So my permalinks are not the defaults. If I use the default then the icons don't work

The problem is not solved. The problem is only with the categories. So from next comments on menus-menis1.css (the lines with -cat-= doesn't work) I've checked and I think that the name of the categories are correct.


/* Part 1- for default state: */
#menu1 .item-home > a > i { background-position: 0px -144px; }
#menu1 .page-indice > a > i { background-position: 0px -336px; }
#menu1 .cat-?cat=12 > a > i { background-position: 0px -1824px; }
#menu1 .cat-?cat=3 > a > i { background-position: 0px -1824px; }
#menu1 .page-contacto > a > i { background-position: 0px -816px; }
#menu1 .page-el-autor > a > i { background-position: 0px -2352px; }

/* Part 2 - for hover state: */
#menu1 .item-home:hover > a > i, #menu1 .item-home.active > a > i { background-position: -24px -144px; }
#menu1 .page-indice:hover > a > i, #menu1 .page-indice.active > a > i { background-position: -24px -336px; }
#menu1 .cat-?cat=12:hover > a > i, #menu1 .cat-?cat=12.active > a > i { background-position: -24px -1824px; }
#menu1 .cat-?cat=3:hover > a > i, #menu1 .cat-?cat=3.active > a > i { background-position: -24px -1824px; }
#menu1 .page-contacto:hover > a > i, #menu1 .page-contacto.active > a > i { background-position: -24px -816px; }
#menu1 .page-el-autor:hover > a > i, #menu1 .page-el-autor.active > a > i { background-position: -24px -2352px; }
  #4  
Old Dec 15, 2012, 06:50 AM
juggledad's Avatar
juggledad
 
21,712 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
there seems to be a bug in the code and I have forwarded it onto the developer. I suggest you go view the page and then look at teh source and see what the classes are and then putting them in the menus_menu1.css file (mto->CSS Files->menus_menu1.css)
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Dec 15, 2012, 07:44 AM
esbrinartot
 
12 posts · Nov 2012
What you proposed works. Now the problem is solved.

I just replaced ?cat=3 for the category name.

thks for your proposal

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Change icon menu and change home title with logo fastmediafree Montezuma Theme 9 Dec 3, 2012 10:31 AM
[SOLVED] How to exclude category menu from static pages kitfreeman Page & Category Menu Bars 3 Feb 25, 2012 07:58 PM
[SOLVED] category menu bar shows up on static home page, although I'd deleted it. mathmojo Page & Category Menu Bars 1 Jun 27, 2010 06:28 PM
[SOLVED] Static Pages on the Category Menu Bar instead of Page Bar jkfly4 Page & Category Menu Bars 4 Mar 27, 2010 03:06 AM
Add static page to the Category Menu Bar jkfly4 Page & Category Menu Bars 1 Jan 12, 2010 07:00 PM


All times are GMT -6. The time now is 03:35 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.