StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Placing a google ad above the content gallery (http://www.studiopress.com/support/showthread.php?t=20625)

fritzwenzel 01-28-2010 01:26 PM

Placing a google ad above the content gallery
 
Hi.

I am wanting to place a google banner below the header but above the content gallery and stretches the width of the page, which would move the homepage side widget down even with the featured content gallery.

How do I do that? I have searched the corporate forum but don't see any answers.

www.wenzelstrategies.com

Many thanks.

Debra 01-28-2010 01:36 PM

open home.php

<div id="content">

<div id="homepage">
Place code here

<div class="homepageleft">

fritzwenzel 01-29-2010 03:28 PM

Great. Worked perfectly. But, how do I get the ad to be centered?

Debra 01-29-2010 03:32 PM

try this
change
<div id="homepage">

to
<div align="center" id="homepage">

fritzwenzel 01-29-2010 03:40 PM

Perfectamundo! Thanks, Debra.

Debra 01-29-2010 03:47 PM

you're welcome

fritzwenzel 01-30-2010 09:45 PM

One quick follow-up - the centering of the ad also centered all copy on the page. I am fine with that, but would like to left-justify the text in the text widgets on the page (www.wenzelstrategies.com) if that is possible. Is it possible?

Debra 01-31-2010 04:14 AM

d'oh of course it did..

k, do this instead

PHP Code:

<div align="centered" class="ad">
AD CODE

</div

and in style

.ad {
background: #F7F7F7;
margin: 0px 0px 10px 0px;
padding: 9px;
border: 1px solid #E6E6E6;
}


All times are GMT -5. The time now is 11:48 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.