Text widget edits my ad code

  • Unknown's avatar

    I have been trying to include a google ad to my wordpress blog site.
    According a tutorial the ad code that has been provided by google needs to be included in the text widget.

    However after copying and pasting the code into the text widget, the code is modified upon saving.

    For example: <script async src=”… will be replaced by: <a href=”….
    Also commands such as <script> will be deleted completely rendering the script useless and the script displayed as normal text.

    How do i prevent the text widget from editing my code?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Here’s what you need to know about advertising on WordPress.com https://en.support.wordpress.com/advertising/

    Also, we cannot use certain codes here due to restrictions; that is why your script is being stripped out. You can find out more about that here: https://en.support.wordpress.com/code/

    Let us know if you need more help with any of the above.

  • The topic ‘Text widget edits my ad code’ is closed to new replies.