Title: Scripts breaking when adding snippet
Last modified: June 11, 2020

---

# Scripts breaking when adding snippet

 *  [thelyall](https://wordpress.org/support/users/thelyall/)
 * (@thelyall)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/scripts-breaking-when-adding-snippet/)
 * I have a snippet as below which works but when I use it the scripts on my site
   break (footer scripts, admin scripts, fly out cart etc.). I’ve tried different
   options in terms of auto adding the PHP tags and changing the snippet but all
   those cause critical errors. Please can you advise? The snippet content is as
   below:
 * `<iframe class="trackingframe" src="https://global.cainiao.com/detail.htm?mailNoList
   =<?php echo $_SERVER['QUERY_STRING']; ?>" width="100%" frameborder="0" scrolling
   ="no">`
 * Thanks

The topic ‘Scripts breaking when adding snippet’ is closed to new replies.

 * ![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)
 * [Insert PHP Code Snippet](https://wordpress.org/plugins/insert-php-code-snippet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php-code-snippet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php-code-snippet/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php-code-snippet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thelyall](https://wordpress.org/support/users/thelyall/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/scripts-breaking-when-adding-snippet/)
 * Status: not resolved