Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Pop-ups issue on my website

Hi there,

I've just put this site live -

http://www.edeharrison.com/friends/

On each page refresh I get pop-ups, from carbonads.com apparently. They were there while I was building it on my local server too.

Anybody have an insight into these and how to get rid of them?

Cheers,

Ede

6 Answers

In your markup I can see this which is causing the ads to display:

<!-- Demo Ads -->
<script src="//www.toddmotto.com/ads/ads.js"></script>

You'd need to find out where that is coming from and remove it!

Hi Ede,

Is this a purchased or free wordpress theme?

Before removing the code as suggested just check the licences involved from where the theme comes from.. :)

Hope this helps!

Craig

Good advice!

Thanks for both of your responses.

In answer to you Craig - it's my own theme. Why do you ask - are some themes released on the condition you display ads?

And Mrben - I can see it my code too, but none-the-wiser as to the best way to remove them. Obviously if I go back to my documents they are nowhere to be seen.

Cheers,

Ede

I did a Google search and found this page https://github.com/toddmotto/toddmotto.github.io/blob/master/labs/html5-contact-form/index.html

If you based your contact form off this page then try looking there.

Otherwise a find across your project files in your text editor should show you where it's coming from.

Ah, duh! Yes, I based the drop down menu on one of Todd Motto's builds and that code -

<!-- Demo Ads -->
<script src="//www.toddmotto.com/ads/ads.js"></script>

was indeed in my footer.

Thanks for both of your speedy responses.

Glad its sorted Ede,

The reason I mentioned the purchased or free theme is exactly that some may well and do anyway come with adverts linking to the home page of the theme provider and most want on the site "theme by joebloggs".

At least in the source code anyway!

In your particular case building your own theme your fine ...

Again glad its sorted!

Craig

Mrben, could you re-post your comment as an answer so I mark it as answered?

Cheers

Sure, thanks :-).

I did a Google search and found this page https://github.com/toddmotto/toddmotto.github.io/blob/master/labs/html5-contact-form/index.html

If you based your contact form off this page then try looking there.

Otherwise a find across your project files in your text editor should show you where it's coming from.