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

Background image in menu items


  #1  
Old Feb 10, 2011, 08:13 PM
inkdork's Avatar
inkdork
 
41 posts · Sep 2010
Lancaster, CA
I am trying to get a small image to show up as a "bullet" in my menu items. I have serached the forums and tried everything listed here (http://forum.bytesforall.com/showthread.php?t=452) as well as some solutions listed in other threads. Nothing changes in my menu with any of them.

http://thedawgsavers.com/ is the site. Any help would be appreciated. Thanks.
  #2  
Old Feb 10, 2011, 08:51 PM
inkdork's Avatar
inkdork
 
41 posts · Sep 2010
Lancaster, CA
After some playing with Juggledad's code, I have the image showing up... but having some issues with the spacing around it. This is what I have now.

Code:
/* ================================================ */
/* Page menu background                             */
/* ================================================ */
div#menu1 { 
	height:40px;  
	margin-top:0px; 
	background: #white; 
}
/* ================================================ */
/* Page Menu item's background and border           */
/* ================================================ */
div#menu1 ul.rMenu {
	background: #white;
	border: none 0px; 
}
/* ================================================ */
/* Page Menu item                                   */
/* ================================================ */
ul.rMenu li a:link, 
ul.rMenu li a:hover, 
ul.rMenu li a:active, 
ul.rMenu li a:visited, 
ul.rMenu li {
	background: url('http://thedawgsavers.com/wp-content/themes/atahualpa364/images/dogsilo.jpg') !important;
        background-repeat:no-repeat !important;
        color: #000000 !important;
        height: 30px;
}
/* ================================================ */
/* Category menu background                         */
/* ================================================ */
div#menu2 { 
	height: 40px;  
	margin-top:0px; 
	background: #green; 
}
/* ================================================ */
/* Category Menu item's background and border       */
/* ================================================ */
div#menu2 ul.rMenu {
	background: #orange;
	border: none 0px; 
}
/* ================================================== */
/* Category Menu item                                 */
/* ================================================== */
#menu2 ul.rMenu li a:link, 
#menu2 ul.rMenu li a:hover, 
#menu2 ul.rMenu li a:active, 
#menu2 ul.rMenu li a:visited, 
#menu2 ul.rMenu li {
	background: #purple !important;
	color: #000000 !important;
}
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
As you can see at the link, I have the border hanging down over an area where the page background is showing through... how do I get rid of that or fill it in with white?

Also, I am having trouble with spacing the text for the menu items over so its not overlapping the image.

I'm going to keep working on this, hopefully I'll sort it out but if not, looking forward to some help.

Thanks.
  #3  
Old Feb 11, 2011, 12:25 AM
inkdork's Avatar
inkdork
 
41 posts · Sep 2010
Lancaster, CA
I went back to check something and my images have vanished... no changes were made in between. Any suggestions as to what I did wrong?
  #4  
Old Feb 11, 2011, 05:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You are in luck - there was a new addition in 3.6.4 - the text of a menu is now surrounded by a <span>...</span> so you can add a margin like this
HTML Code:
ul.rMenu li a span {
         margin-left: 30px;
}

when I copied your code, the images showed up for me.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Feb 20, 2011, 10:18 AM
jrobie23's Avatar
jrobie23
 
63 posts · Feb 2011
Boulder, CO
would you also use that span to center the text vertically? My icon is a smidge larger than my text, and I'd like to have it show up in the middle of the graphic.

http://kancmotorlodge.totalscopemarketing.com/
  #6  
Old Feb 20, 2011, 12:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
jrobie23 - the <span> is in the header menu, not the page widget. I'd use firebug in firefox to see what you could adjust
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Limiting menu background to menu items Farinet Page & Category Menu Bars 4 Dec 27, 2010 06:56 AM
[SOLVED] Background color:hover not working for 'category' items in menu 1 (page menu akg Center area post/pages 4 Sep 27, 2010 09:08 AM
background-image for Sub-menu items / ul.children Fux Page & Category Menu Bars 7 Jul 18, 2010 03:22 AM
Background Image for Category Menu Items joan Page & Category Menu Bars 3 Apr 19, 2010 04:30 AM
[SOLVED] Background image of child items not the same as parent noahinBR Header configuration & styling 2 Feb 4, 2010 01:43 PM


All times are GMT -6. The time now is 11:39 AM.


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