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] How to set different icon for each page in top menu?


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 8, 2013, 12:40 PM
RitaUX
 
6 posts · Mar 2013
[SOLVED] How to set different icon for each page in top menu?

Hi I'm working on my page and stumble upon some obstacles. Here's the first one:

I want to define an icon from sprite set to each page in my top menu, just the way Ideafart did it:
http://ideafart.com/

Now it looks like this: http://uxjourney.co.uk

I want to set Pacman changing to ghost in 'Bio' page and ghost changing to Pacman in 'Contact' page.

For now I could only managed to set the same for two pages ;/

I've changed it in the CSS menu1:
#menu1 > li > a > i {
display: block;
width: 24px;
height: 24px;
margin: 0 auto 5px auto;
background: transparent url(%tpldir%/images/menu-icons-0090d3.png) 0 -1728px no-repeat;
}

#menu1 > li:hover > a > i {
background: transparent url(%tpldir%/images/menu-icons-0090d3.png) -24px -1752px no-repeat;
}

I tried doing it that way by pasting these below, but it didn't work at all (no icons):

#menu1 .bio > a > i { background-position: 0px -1752px; }
#menu1 .contact > a > i { background-position: 0px -1728px; }
/* Part 2 - for hover state: */
#menu1 .bio:hover > a > i, #menu1 .bio.active > a > i { background-position: -24 -1728px; }
#menu1 .contact:hover > a > i, #menu1 .contact.active > a > i { background-position: -24px -1752px; }

Could you please help me with this?

Last edited by RitaUX; Mar 9, 2013 at 11:45 AM.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] change icon on menu 1 when you use a category instead of an static page esbrinartot Montezuma Theme 4 Dec 15, 2012 07:44 AM
[SOLVED] Centering menu titles vertically & placing a dot/asterisk/icon between menu hnbrace Page & Category Menu Bars 8 Jun 28, 2011 04:07 PM
How to: Delete Comments Tab; Move Search Bar; Move RSS icon to Menu Page bar frugalmommytoday Header configuration & styling 1 Oct 14, 2010 07:50 AM
Feed Icon in page menu bar kkk RSS, Feeds & Subscribing 4 Nov 28, 2009 04:18 PM
How do I add an icon to a page menu link in page menu bar? bcorrigan Page & Category Menu Bars 9 Apr 6, 2009 02:35 PM


All times are GMT -6. The time now is 08:29 PM.


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