Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Image Buttons on Vertical Page menu (http://forum.bytesforall.com/showthread.php?t=20217)

nick51 Apr 27, 2013 04:03 PM

Image Buttons on Vertical Page menu
 
Used to do this easily but I've been away from it for so long I've forgotten. can't find it in the forum but I know there is a way to replace the Gray/Black rectangle next to a page menu item and make it an image that alternates upon roll-over.

if someone could refresh my memory of what CSS I need to do that, I'd appreciate it!

Nick

nick51 Apr 29, 2013 05:50 PM

/no one knows the answer to this? Really need help on this.

juggledad Apr 29, 2013 06:49 PM

Are you talking about the sidebar?

nick51 Apr 29, 2013 08:43 PM

Yes, When I put a Page menu there the gray background bars (to the left of each menu item) that are there now, I'd like to replace with graphics with a simple roll-over. I'm embarrassed to say I at one time knew how to do this and remember it was relatively simple. But I've not built a site for over 18 months and don't have the CSS Insert sitting around any longer. Would greatly appreciate any assistance.

juggledad Apr 30, 2013 01:28 AM

I think you are looking for HOWTO: use CSS list style types (or widgets, bars, bullets and squares oh my)

nick51 May 1, 2013 08:58 PM

Thanks this helped get rid of the gray bars, but does not cover how to add an image in there place.

juggledad May 2, 2013 04:05 AM

well you could add a background image to the menu li

nick51 May 3, 2013 08:29 PM

Yeah, like I said at the start, long time since I've done this and I'm clueless. I've searched through the forum for hours, I've tired dozens of things and nothing. Just trying to put an image to the left of a vertical nav menu.

Thanks for trying. I'll just have to hire someone to fix this for me.

juggledad May 4, 2013 05:07 AM

seriously? I just gave you the answer. add a 'background-image' to the CSS selector 'menu-item' like
HTML Code:

.menu-item {
background-image: url('http://yourdomain.com/wp-content/uploads/2012/06/yourimage.jpg');
}

you may have to position the <a> to the right a little

nick51 May 4, 2013 06:53 AM

Juggledad, Not trying to be snarky, I was just out of time to spent on this. your assistance in the past and now is greatly valued and appreciated! I am not a coder and have forgotten what little CSS I knew in the past. I did really look and try quite a few things including your nicely written guide I found <color coded...>. I'll try some additional things today but at some point I need to cut my time loss on this. I'm sure it's something little I'm doing wrong but again, thank you for your assistance.

juggledad May 7, 2013 07:52 PM

where did you come up with '#menu'?

nick51 May 8, 2013 05:49 PM

I've just banging around other sites looking for clues on how to do this.

juggledad May 8, 2013 05:56 PM

you should use firebug and look at what is actually being used.

nick51 May 8, 2013 06:07 PM

If you could just confirm if this goes in the CSS Insert section that would at least send me in the right direction.

nick51 May 8, 2013 06:10 PM

i think I'm on the right track. thanks

nick51 May 8, 2013 08:27 PM

OK, Slowly but surely. Used what you gave me with some code found on other site to create a roll-over. Now need to figure out how to make the image/menu height taller to accommodate a taller image and more vertical spacing. thanks again

.menu a { color:#666; padding-top:0.9em; text-indent:2.4em; border:none; background: url('http://yourURL.com/wp-content/uploads/2013/05/Green-hand.jpg') 0 0 no-repeat !important; }

.menu a:hover, .menu .current a:hover { color:#666; background: url('http://yourURL.com/wp-content/uploads/2013/05/red-hand.png')0 0 no-repeat !important;}.menu-item {
padding:0 1.2125em 0 2.8em;
}

nick51 May 8, 2013 08:29 PM

Got it!

.menu a { color:#666; padding-top:0.9em; text-indent:2.4em; border:none; line-height: 40px; background: url('http://yourURL.com/wp-content/uploads/2013/05/Green-hand.jpg') 0 0 no-repeat !important; }

.menu a:hover, .menu .current a:hover { color:#666; line-height: 40px; background: url('http://yourULR.com/wp-content/uploads/2013/05/red-hand.png')0 0 no-repeat !important;}.menu-item {
padding:0 1.2125em 0 2.8em;
}


All times are GMT -6. The time now is 06:39 PM.

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