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.


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')

Put in Custom Code



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). 




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

Kos replied to Enrrico Torres's discussion 'how to reduce the http request'
1 hour ago
George H. Compton IV replied to Enrrico Torres's discussion 'Please help to create a slider'
"Replace just the CSS stylesheet with this one. I think I have it all worked out for…"
2 hours ago
Elshara Silverheart replied to Shruti Shah's discussion 'Sign up problem'
"I seen that somewhere two on another site, not sure what it means."
2 hours ago
Fondazione ISTUD is now a member of Creators
2 hours ago
Elshara Silverheart replied to György Juhász's discussion 'Language editor issues'
"Hey, good idea! I know in Ning 2.0 the most recent translations were on the last pages of the site…"
2 hours ago
Elshara Silverheart replied to György Juhász's discussion 'Language editor issues'
"I've never heard of that happening before. Essentially you're having problems translating…"
3 hours ago
Elshara Silverheart replied to György Juhász's discussion 'Language editor issues'
"Sometimes I can't get formatting to work right when editing certain boxes."
3 hours ago
Elshara Silverheart replied to francesco pillinini's discussion '3rd Party Integration > Facebook'
"It's under general app settings on your facebook app its a checkbox you need to uncheck it if…"
3 hours ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service