Amazon and Google code not running but displayed as text in WordPress post
-
I included Amazon Native Ads code in the text editor of my WordPress post and instead of running the code, it is displayed.
The code I received from Amazon:
<script src=’//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=a23dd136-6b13-4ed6-a8f7-ddeed599ea3c&storeId=strictfinanc-20′></script>The way it’s displayed on in my post:
//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=a23dd136-6b13-4ed6-a8f7-ddeed599ea3c&storeId=strictfinanc-20The same happened when I tried to put Google code in the text editor of WordPress.
Thanks for your support!
The blog I need help with is: (visible only to logged in users)
-
It looks like you are trying to add javascript. Both javascript and other types of code cannot be added to our WordPressdotcom sites for security reasons. Please see this Support doc for more information: https://en.support.wordpress.com/code/
Also, you will want to read this guide on what is allowed (and what isn’t) as far as monetizing your WordPressdotcom site: https://en.support.wordpress.com/monetize-your-site/
Let us know if you need more info on that.
-
-
- The topic ‘Amazon and Google code not running but displayed as text in WordPress post’ is closed to new replies.