Javascript Widget Ad Creating Blank Blog


Author Message
Thatgirl

Posted: 9/2/2014
Quote message 

In your ad code look for link inside of it that ends with a .js for example: http://ads.theads.com/26/2621/160a.js

Save that link you will need it.

Go to Template-find this line:

var widgetContent = widget.html();

After that line add the follow:

if (widgetContent.indexOf(‘your above link here’) > -1) return true;

Save and now add your ad code into a html widget and save.

If you want to add more similar gadgets, simply copy+paste this string into the template:

if (widgetContent.indexOf(‘your above link here’) > -1) return true;