Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

I can't change the menu icons (eventhough I modified the css files)

Old Jan 28, 2013, 08:00 PM
4 posts · Jan 2013
Paris, France
Hello to everyone.
First of all, please apologize my poor english. I am not a native english speaker and I find it really difficult to read and understand what I find on the web.
I'm very enthusiastic about Montezuma. Unfortunately I can't manage to change the menu icons.
The url (a test, not consistent) :
My main menu is made of three categories (id : 3, 7 & 4).
As I would like to have new icons instead of the star, I edit this from the "Using Menu Icons" section :

HTML Code:
/* Part 1- for default state: */
#menu1 .cat-?cat=3 > a > i { background-position: 0px -1944px; }
#menu1 .cat-?cat=7 > a > i { background-position: 0px -2352px; }
#menu1 .cat-?cat=4 > a > i { background-position: 0px -1728px; }
/* Part 2 - for hover state: */
#menu1 .cat-?cat=3:hover > a > i, #menu1 .cat-?cat=3.active > a > i { background-position: -24px -2184px; }
#menu1 .cat-?cat=7:hover > a > i, #menu1 .cat-?cat=7.active > a > i { background-position: -24px -2328px; }
#menu1 .cat-?cat=4:hover > a > i, #menu1 .cat-?cat=4.active > a > i { background-position: -24px -1752px; }

I copied this piece of code and pasted it within the menus_menu1.css file.
I did not replace any part of previously existing code, I added these lines of code.
I saved and had a look at my "new" site, but nothing changed.
Still this star, regardless which browser I'm using (Chrome, Firefox, IE)
I don't have a good standard in coding PHP and CSS, I certainly did something wrong...
But I can't see where...

Thanks in advance for your help.


Last edited by lmilesw; Jan 28, 2013 at 09:02 PM.
Old Jan 29, 2013, 05:47 AM
juggledad's Avatar
23,684 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what are your permalinks set to?
there is an issue with the creation of the CSS and it isn't always accurate. You should view the source of the page and make sure the CSS classes match what is being used on the page.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Jan 29, 2013, 09:17 AM
4 posts · Jan 2013
Paris, France
Thanks a lot for your reply, i could solve the problem by replacing this portion of code (and the other ones related) :
#menu1 .cat-?cat=3 > a > i { background-position: 0px -1944px; }
with :
#menu1 .cat-jour-nalisme > a > i { background-position: 0px -1944px; }

it seems that ?cat=3 did not provide what was expected...

by the way, my permalinks are set to : "article name"



css, menu icon

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icons in top menu danieln Montezuma Theme 2 Dec 6, 2012 07:29 AM
Change Icons in Menu matejp Montezuma Theme 5 Oct 24, 2012 07:01 PM
Sub Menu item not showing eventhough sub menu page listed as sub page of parent page sanjayks Page & Category Menu Bars 8 May 5, 2012 03:34 PM
Upgrade overwrites header images and modified css files. grablife Forum How-To 2 Feb 17, 2010 06:33 AM
[SOLVED] Weird images dont change, when files changed in Dynamic Header?? Tamandua Header configuration & styling 1 Jan 23, 2010 11:28 AM

All times are GMT -6. The time now is 04:34 PM.

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