Code having conflict with theme?

Posted in: Newsmag
Post count: 7

Hi,

I am trying to add a piece of code from an ad network called ‘revcontent’, this code needs to be added to the single.php file, it basically makes 9 ads appear below every article.

But after doing tests its defiantly not a plugin conflict but a theme conflict, its making the site become unresponsive and just freezes eventually.

Do you have any suggestions?

The code is:

<div id=”rcjsload_12ff30″></div>
<script type=”text/javascript”>
(function() {
var rcel = document.createElement(“script”);
rcel.id = ‘rc_’ + Math.floor(Math.random() * 1000);
rcel.type = ‘text/javascript’;
rcel.src = “http://trends.revcontent.com/serve.js.php?w=11240&t=”+rcel.id+”&c=”+(new Date()).getTime()+”&width=”+(window.outerWidth || document.documentElement.clientWidth);
rcel.async = true;
var rcds = document.getElementById(“rcjsload_12ff30”); rcds.appendChild(rcel);
})();
</script>

And my website is: http://thebrizzle.com

Thanks,
Jonny

Post count: 6535

Hi

The theme was designed to display ad-sense code, and inserting different types of ads may create conflicts between their’s scripts and the theme’s js. I am not aware how this types of ads works so I can’t said why the site’s responsiveness is affected, so try to contact the code provider and ask him about this, he should be able to offer more details in this regard.

Thanks for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.