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)
-   -   background-image for Sub-menu items / ul.children (http://forum.bytesforall.com/showthread.php?t=8159)

Fux Jul 14, 2010 12:41 AM

background-image for Sub-menu items / ul.children
 
I got this problem with my sub-menu items - the white space where the background-image is not applied. I _could_ fix this by applying the background to ul.children, but that is also used for the comments section, causing trouble there. How can I fix this?

http://s275144270.online.de/submenu_items.jpg

URL is http://www.urgeschmack.de

juggledad Jul 14, 2010 04:56 AM

go look for a fix in the 'New Versions' forum

Fux Jul 14, 2010 08:02 AM

Thank you very much.

Fux Jul 17, 2010 06:10 AM

I applied that fix but the situation did not change. What else could I do to fix this?

juggledad Jul 17, 2010 06:29 AM

Make sure you don't have any caching plugins active or it will take time for the fix to how up
Set your CSS to internet so I can take a peek

Fux Jul 17, 2010 08:09 AM

No Caching plugins, CSS Debugging set to 'yes', double-checked my CSS inserts to not make a fool out of myself once again (but probably will...)

juggledad Jul 17, 2010 09:09 AM

look in your CSS Inserts for the following
HTML Code:

ul.rMenu li {
margin:0px 22px;
color:#eee !important;
font-weight:bold;
background:url(/wp-content/uploads/ug_pagemenu_buttonBG.png) repeat-x top left
}

and change the margin:0px 22px; to padding:0px 12px;

Fux Jul 18, 2010 02:22 AM

Thank you, that fixed it - but introduced a new problem. By using padding instead of margins, the buttons have become wider and there seems to be a difference in hovering over the button versus hovering over the text link in the button, each changing to a different color while hovering.

To fix this as well, I changed the setting back to "margin" and just added:

li.page-item-1041 {
padding:0px 22px;
margin: 0px 0px !important;
}

for that specific sub-menu item.

The main problem seems to be to override the background-color settings from the Ata "Page Menu Bar" styling-set. It seems to make sense to either write a short how-to/faq on how to change the page menu bar to a image based bar with changing graphics for hover etc. OR to add options to use images straight on the "Page Menu Bar" settings page.

For example, to get the menu bar to work like this http://www.urgeschmack.de (and one main issue was the button spacing because the Ata standard-spacing just did not look good)m I had to use this code:

div#menu1 {
border: none;
background: url(/buttonBG.png) repeat-x top left;
}
div#menu1 ul.rMenu {
background: url(/buttonBG.png) repeat-x top left;
}

ul.rMenu li {
margin: 0px 22px;
color: #eee !important;
font-weight:bold;
background: url(/buttonBG.png) repeat-x top left;
}
li.page-item-1041 {
padding:0px 22px;
margin: 0px 0px !important;
}

ul.rMenu li a:hover,
.page-item a:hover {
text-decoration:underline;
color: #fff !important;
background: url(/buttonBG_hover.png) repeat-x top left;
}

So another good option might be to add "Page menu bar item width" or something similar.


All times are GMT -6. The time now is 12:27 AM.

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