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

Menu with pics inside

Prev Previous Post   Next Post Next
Old May 3, 2011, 03:58 AM
13 posts · Apr 2011
Menu with pics inside


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).


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 04:49 AM
[SOLVED] Would like horizontal menu to span page body (example inside) BackyardHockey Page & Category Menu Bars 6 Oct 25, 2010 10:10 AM
Sidebar pics for wpg2 open solo Stang5_0 Plugins & Atahualpa 1 Jun 26, 2009 02:17 PM

All times are GMT -6. The time now is 03:30 AM.

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