Title: Before,Inside,After HTML options &#8211; Amazon Widget Script code not loading
Last modified: May 26, 2021

---

# Before,Inside,After HTML options – Amazon Widget Script code not loading

 *  Resolved [Shailesh](https://wordpress.org/support/users/shaileshghadge/)
 * (@shaileshghadge)
 * [5 years ago](https://wordpress.org/support/topic/beforeinsideafter-html-options-amazon-widget-script-code-not-loading/)
 * Hello,
 * For the options, Before,Inside,After HTML options – Amazon Widget Script code
   not loading.
 * It works properly for the other pre-defined options, Before Post, Before Para,
   etc.
 * (I’m using Client side insertion, On hover I see it mentiones about, Server side
   insertion option, but it isnt available in dropdown)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years ago](https://wordpress.org/support/topic/beforeinsideafter-html-options-amazon-widget-script-code-not-loading/#post-14483859)
 * Hello,
 * make sure the code supports asynchronous loading. Otherwise you can’t insert 
   it client-side. If it works when inserting it server-side as you describe, then
   this is the most likely reason. Not all Amazon codes support client-side insertion.
 * You need to enable **Output buffering** to enable serevr-side insertion near 
   HTML elements:
    [https://adinserter.pro/documentation/insertion-before-inside-after-html-element](https://adinserter.pro/documentation/insertion-before-inside-after-html-element)
 *  Thread Starter [Shailesh](https://wordpress.org/support/users/shaileshghadge/)
 * (@shaileshghadge)
 * [5 years ago](https://wordpress.org/support/topic/beforeinsideafter-html-options-amazon-widget-script-code-not-loading/#post-14488903)
 * Hi,
    I tried Server-side, but it did not work.
 * **I was able to load it using php code placement in template.**
 * It appears, the Amazon Affiliate Ads creation script only works with predefined
   insert option (before comment, before post, after post, etc) and not with Before/
   Inside/After HTML when Selector via id,class is provided.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years ago](https://wordpress.org/support/topic/beforeinsideafter-html-options-amazon-widget-script-code-not-loading/#post-14488911)
 * Ok, thanks for the update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Before,Inside,After HTML options – Amazon Widget Script code not loading’
is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/beforeinsideafter-html-options-amazon-widget-script-code-not-loading/#post-14488911)
 * Status: resolved