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 

Tags: ad, box, hide, main, page

Views: 94

Reply to This

Replies to This Discussion

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

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 

RSS

What's Up With Ning 3.0?

Click here to share your thoughts on what features we should develop next! - Survey will close Friday, 4/25

Projects that the Ning 3.0 Team is currently working on: 

Articles - a new way of organizing longer content pieces. Released 4/16.

Activity Feed Updates - options for more content in the activity feed.

Forum Notifications - ability for members to opt into receiving notifications of new discussions in forums. Released 4/9. 

APIs - The ability to create new members and content programatically.

For more information on what's next, visit the Product Roadmap

Latest Activity

Troy Marquis replied to Troy Marquis's discussion 'Ning Activity feeds Going CooCoo's'
"its not its the profile pic of the uploader showing instead of the pic"
2 hours ago

NC for Hire
JFarrow replied to Troy Marquis's discussion 'Ning Activity feeds Going CooCoo's'
"this looks more like milicious member...or spam activity by a member uploading the same photos over…"
2 hours ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"yup just add permenantly to leave"
4 hours ago
Kos replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"Jeffrey can't that be altered in Language Editor?"
4 hours ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"i do find it hard to believe but ..use the language editor and add permenantly to the leave…"
5 hours ago
Jeffrey Haskins replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"SE True, True, but same point as Strum made, some folks are internet clueless, and if they really…"
5 hours ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"i agree but disagree only thing i disagree with i disagree strongly with and thats the read more…"
5 hours ago
Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"SE, the same thing happens sometimes for me- members think the little link that says "Leave…"
5 hours ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service