I know this may sound strange but I have a nice slider as a banner so I don't need an ad box on the main page.
Anyone know a way to hide an ad box from ONLY the main page?
Thanks in advance for sharing.
David

As far as I can see there is no parent class of the ad box that identifies it as being on the main page like other module so i've had to use some script. not ideal as it'll do that old Ning favourite of 'now you see it now you don't' when the script runs LAST!
Anyway, try this, assuming you've got the ad box above header. replace http://www.yourmainpageurl.com':
<!-- Remove Top Ad Box from Homepage -->
<script type="text/javascript">
x$(document).ready(function() {
if (window.location == 'http://www.yourmainpageurl.com')
x$("#xg_ad_above_header").remove();
});
</script>
Put in Custom Code
SP
Permalink Reply by David Deubelbeiss on April 5, 2012 at 7:07am SweetPotato,
Thanks a million and I'll try that. I understand what you mean and will see what the load times are.
Hopefully Ning is listening and will give us options for restricting ad boxes on certain parts of the site (I know that many want it to not appear on profile pages - based on the threads of this forum).
cheers,
David
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
Larry Matthews replied to Larry Matthews's discussion 'Photos'
Fabio replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
© 2013 Created by Ning.
