View Full Version : Hiding Ads on Homepage
GwagDesigns
Aug-31-2009, 12:59 PM
I have a google ads script in my bottom javascript which I want to display everywhere on my site but the homepage. I've tried wrapping it in a div and hiding it that way with no luck. any help?
Thanks,
David
jfriend
Aug-31-2009, 01:32 PM
I would suggest wrapping it in a div and then using CSS to hide the div. I don't understand why that wouldn't work. Here's what I did:
Change your <center> tag that is before it now to this:
<div id="myGoogleAds" align="center">
Change the </center> tag that's after it to </div>
Then, add this CSS:
.homepage #myGoogleAds {display:none;}
sunxsweet
Aug-31-2009, 09:19 PM
yup... what john said. if u have firefox webdev, check out my page and that is exactly what i'm doing...
I would suggest wrapping it in a div and then using CSS to hide the div. I don't understand why that wouldn't work. Here's what I did:
Change your <center> tag that is before it now to this:
<div id="myGoogleAds" align="center">
Change the </center> tag that's after it to </div>
Then, add this CSS:
.homepage #myGoogleAds {display:none;}
GwagDesigns
Aug-31-2009, 11:45 PM
Ah perfect, thank for your help guys! :barb
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.