Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Dec 14, 2012, 03:11 PM
esbrinartot
 
31 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, 06:44 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
change your permalinks to something other than the defaults
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 15, 2012, 07:33 AM
esbrinartot
 
31 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, 07:50 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 15, 2012, 08:44 AM
esbrinartot
 
31 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



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 11:31 AM
[SOLVED] How to exclude category menu from static pages kitfreeman Page & Category Menu Bars 3 Feb 25, 2012 08: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 07:28 PM
[SOLVED] Static Pages on the Category Menu Bar instead of Page Bar jkfly4 Page & Category Menu Bars 4 Mar 27, 2010 04:06 AM
Add static page to the Category Menu Bar jkfly4 Page & Category Menu Bars 1 Jan 12, 2010 08:00 PM


All times are GMT -6. The time now is 01:27 AM.


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