Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] styling background in header widget areas (http://forum.bytesforall.com/showthread.php?t=6931)

emanuel1969 Apr 30, 2010 03:45 PM

[SOLVED] styling background in header widget areas
 
I made a new widget area in the header and put it below the logo and header image like this:

%logo %pages %image <?php bfa_widget_area('name=New widget area'); ?>

Is there a way I can put a background image behind this? Or just set a background color? It seems to be using the "body" style when I want the style to match the "center column" style. Yet there's no way to put a widget area in the center column.

Thanks!

lmilesw Apr 30, 2010 04:13 PM

You can put a widget area in the center column just add the code to ATO>Style & Edit CENTER COLUMN>Content ABOVE the LOOP.

emanuel1969 Apr 30, 2010 05:30 PM

Awesome! Thanks. That worked. Now is there a way to set left/right margins for a widget area? Or do I need to make a three-celled widget area and set the width of the left/right cells, leaving them empty?

lmilesw Apr 30, 2010 08:20 PM

You should be able to style the widget area with the following if you named it New widget area.
HTML Code:

#New_widget_area {
border: 1px solid black;
padding: 5px;
}

Etc. Etc.

emanuel1969 Apr 30, 2010 08:36 PM

So simple. So elegant. Thanks.

Oh, and I had to un-capitalize it to get it to work, like this....

#new_widget_area {
border: 1px solid black;
padding: 5px;
}

Thanks again.

lmilesw Apr 30, 2010 08:40 PM

That makes sense... Glad it worked.


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

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