Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   Apply drop shadow to only part of the container? (http://forum.bytesforall.com/showthread.php?t=16513)

waveainair Jan 16, 2012 04:14 PM

Apply drop shadow to only part of the container?
 
...or move adsense code outside container area?

I successfully put my adsense code above my header in the Configure Header Area (style header). I also successfully put a drop shadow around the container in the Layout Container Style area (style layout).

Now I'd like to remove the box shadow from just the adsense part of the container so that the gray ad background blends into the rest of the gray body background, rather than have a shadow separating the two grey areas.

I tried to apply the box shadow to only the header and left/right widget areas to no avail. I just doesn't look right.

I suppose there might be a way to put a widget outside the container and add the adsense code, which may achieve the same desired result, but my testing was unable to get this approach to work.

I also know I could add a background image and create the drop shadow effect but I'm not sure how to create padding for that image if it's to be repeated.

Ideas? Thanks.

http://deepinsidethekings.com/

lmilesw Jan 17, 2012 06:09 AM

For that you will probably have to put code in the HTML Inserts: Body top box in the theme options and then use CSS to tweak.

waveainair Jan 17, 2012 09:31 AM

Quote:

Originally Posted by lmilesw (Post 78902)
For that you will probably have to put code in the HTML Inserts: Body top box in the theme options and then use CSS to tweak.

Any idea what code?

lmilesw Jan 17, 2012 11:48 AM

You could put a new widget code in the [HTML Inserts: Body Top] area, add a widget to it with your adsense code and style with css.

waveainair Jan 18, 2012 12:42 PM

Quote:

Originally Posted by lmilesw (Post 78915)
You could put a new widget code in the [HTML Inserts: Body Top] area, add a widget to it with your adsense code and style with css.

I believe PHP code is needed to create a new widget. PHP is no longer accepted in the [HTML Inserts: Body Top] area.

I that what you meant?

lmilesw Jan 18, 2012 01:29 PM

If you have version 3.7.3 the php code for new widget areas can still be used.

waveainair Jan 18, 2012 01:46 PM

Quote:

Originally Posted by lmilesw (Post 78961)
If you have version 3.7.3 the php code for new widget areas can still be used.

Wow. That was easy. Thank you!

I tried putting this (<?php bfa_widget_area('name=new widget'); ?>) into the Body Top field but nothing happened at first.

I tried it again and viola, pefect.

So why then does it say "PHP code cannot be used anymore" for those fields if it can?

Thanks again. Such an easy fix.

lmilesw Jan 18, 2012 05:01 PM

All other PHP cannot be used. The ability to use new widget area PHP was added at one point but not documented inside the theme as well as it could have been. This may be taken care of in a future version.


All times are GMT -6. The time now is 01:26 PM.

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