Title: Problem Script AMP non valid
Last modified: April 11, 2019

---

# Problem Script AMP non valid

 *  [espacemusculation](https://wordpress.org/support/users/espacemusculation/)
 * (@espacemusculation)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/problem-script-amp-non-valid/)
 * Hello,
 * Thanks for this nive plugin.
    There is a problem with the script. **The code 
   is displayed even on unwanted pages**. For example, I use notes only on a few
   pages but in the source code, the script is loaded everywhere, on the home page,
   on categories, etc. is it possible to load the necessary elements only when necessary?
 * Another big problem is that the script in the source code is loaded at the top
   of the page. This creates an error in the **validation of AMP **pages.
    Either
   remove this piece of code for AMP pages or put it somewhere else.
 * How to do this?

The topic ‘Problem Script AMP non valid’ is closed to new replies.

 * ![](https://ps.w.org/kk-star-ratings/assets/icon-256x256.jpg?rev=2140680)
 * [kk Star Ratings - Rate Post & Collect User Feedbacks](https://wordpress.org/plugins/kk-star-ratings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kk-star-ratings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kk-star-ratings/)
 * [Active Topics](https://wordpress.org/support/plugin/kk-star-ratings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kk-star-ratings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kk-star-ratings/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [espacemusculation](https://wordpress.org/support/users/espacemusculation/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/problem-script-amp-non-valid/)
 * Status: not resolved