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 » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Menu with pics inside


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

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old May 3, 2011, 04:58 AM
Spidey
 
13 posts · Apr 2011
Menu with pics inside

Hello,

I have customized my page menu with this code and it's working pretty well :

HTML Code:
/* ================================================ */
/* how to highlight parent of current page          */
/* ================================================ */
ul.rMenu li.current_page_parent link, 
ul.rMenu li.current_page_parent active, 
ul.rMenu li.current_page_parent hover, 
ul.rMenu li.current_page_parent visited, 
ul.rMenu li.current_page_parent {
background: #05A505 !important;
color: #000000 !important;
}
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */


ul.rMenu li.current-menu-parent link, 
ul.rMenu li.current-menu-parent active, 
ul.rMenu li.current-menu-parent hover, 
ul.rMenu li.current-menu-parent visited, 
ul.rMenu li.current-menu-parent {
background: #05A505 !important;
color: #000000 !important;
}

ul.rMenu li.current_page_ancestor link, 
ul.rMenu li.current_page_ancestor active, 
ul.rMenu li.current_page_ancestor hover, 
ul.rMenu li.current_page_ancestor visited, 
ul.rMenu li.current_page_ancestor {
background: #05A505 !important;
color: #000000 !important;
}
 

/* For CURRENT */
ul.rMenu li.current_page_item a:link,
ul.rMenu li.current_page_item a:visited,
ul.rMenu li.current_page_item a:active,
ul.rMenu li.current_page_item a:hover {
background: #05A505 !important;
color: #000000 !important;
}

/* For CURRENT */
ul.rMenu li.current-menu-item a:link,
ul.rMenu li.current-menu-item a:visited,
ul.rMenu li.current-menu-item a:active,
ul.rMenu li.current-menu-item a:hover {
background: #05A505 !important;
color: #000000 !important;
}
You can see it here --> http://bit.ly/esa8pJ

Now i want to add some small pics before the countries in the dropdown menu.

I've tried that and it works.
The problem is on mouse over and when the item is selected the pics dissapear.

HTML Code:
ul.rMenu li.menu-item-263 {
padding-left: 30px;
background: url(http://www.senojflags.com/images/national-flag-symbols/France-Flag.png) no-repeat scroll center left #05A505;
color: #000000;
}
Is that a good idea to add the pics like that or is there another way (i mean without CSS) ?
I've tried to add the pics on the MENU config directly in wordpress (by putting <img src" "> in the "Navigation Label" field. It works, but i can't place the pics exactly where i want (does not align with the text).
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move page menu bar to inside logo area whooploncom Page & Category Menu Bars 1 Dec 21, 2010 05:49 AM
[SOLVED] Would like horizontal menu to span page body (example inside) BackyardHockey Page & Category Menu Bars 6 Oct 25, 2010 11:10 AM
Sidebar pics for wpg2 open solo Stang5_0 Plugins & Atahualpa 1 Jun 26, 2009 03:17 PM


All times are GMT -6. The time now is 02:50 AM.


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