Hi!
Have the same issue with malware injected code. https://i.imgur.com/4q70kCv.png
The code stores in td_live_css_local_storage. It refers to TD composer plugin.
I deleted the code. But what was the source of issue?
How I can protect the site?
As due to this code the user with admin rights was created several times on wordpress.
If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray
Please clarify where I should insert this code.
Hi.
For example
Original code
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<ins class=”adsbygoogle”
style=”display:block; text-align:center;”
data-ad-layout=”in-article”
data-ad-format=”fluid”
data-ad-client=”ca-pub-XXXXXXXXXXXXXXXXX”
data-ad-slot=”XXXXXXXXXXX”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
I would like to use the original code above, not modified code. What should I do?
The code on the page, after the Newspaper template has modified it, below
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><div class=”td-g-rec td-g-rec-id-content_inline td_uid_2_5a86f5a6ee5e9_rand td_block_template_1 “>
<script type=”text/javascript”>
var td_screen_width = window.innerWidth;
if ( td_screen_width >= 1140 ) {
/* large monitors */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:468px;height:60px” data-ad-client=”ca-pub-xxxxxxxxxxxxxxxxxxxxxxx” data-ad-slot=”xxxxxxxxxxxxxxxxxxxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width >= 1019 && td_screen_width < 1140 ) {
/* landscape tablets */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:468px;height:60px” data-ad-client=”ca-pub-xxxxxxxxxxxxxxxx” data-ad-slot=”xxxxxxxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width >= 768 && td_screen_width < 1019 ) {
/* portrait tablets */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:468px;height:60px” data-ad-client=”ca-pub-xxxxxxxxxxxxxx” data-ad-slot=”xxxxxxxxxxxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( td_screen_width < 768 ) {
/* Phones */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:320px;height:50px” data-ad-client=”ca-pub-xxxxxxxxxxxxxxxxxxxx” data-ad-slot=”xxxxxxxxxxxx”></ins>’);
(adsbygoogle = window.adsbygoogle || []).push({});
}
</script>
</div>
Catalin, could you please help with this issue regarding advert in Newsparer template?
https://forum.tagdiv.com/topic/how-to-switch-off-adsense-code-modification-by-newspaper/
Is anybody here?
Hi. Have the same problem.
I have added html-code widget with links to the Newspaper default sidebar and have changed all base colors via Theme panel – theme colours.
But the links in html-code widget still have the base color #4db2ec.
It is impossible to change it via Theme panel – theme colours.
How i can change this color via css edition?