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 »

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


  #1  
Old Jan 28, 2013, 08:00 PM
toolaba
 
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) :
www.woirgard.fr/blog
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.

toolaba

Last edited by lmilesw; Jan 28, 2013 at 09:02 PM.
  #2  
Old Jan 29, 2013, 05:47 AM
juggledad's Avatar
juggledad
 
23,765 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
  #3  
Old Jan 29, 2013, 09:17 AM
toolaba
 
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"

toolaba

Bookmarks

Tags
css, menu icon



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:53 PM.


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