• I have an Amazon search page on my site which is my Amazon affiliate link.

    When I enter the ad code into the page directly using the custom html block or text view in classic editor the ad will display in preview but NOT when it’s live on the site, it just displays a blank box.

    It displays quite happily on a custom .html page and the only way I can get it to display on my site is by loading the custom page woodmore.co.uk/asp into the block editor for the site page as an img src.

    What do I need to do to get it to run directly on the site?

    Here’s the code from the html page

    
    <!DOCTYPE html>
    <html>
    <body>
    <center>
    <h1>Amazon product Search</h1>
    
    <p>
    
    <script type="text/javascript">amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="woodmorecouk-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF"; </script><script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>
    </p>
    </center>
    </body>
    </html>
    
    • This topic was modified 4 years, 5 months ago by 19woody59.
    • This topic was modified 4 years, 5 months ago by Yui. Reason: formatting

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I got the screenshot below by simply copying and pasting the script line into a CUSTOM HTML block in the default WordPress block editor.

    <script type="text/javascript">amzn_assoc_ad_type ="responsive_search_widget"; amzn_assoc_tracking_id ="woodmorecouk-21"; amzn_assoc_marketplace ="amazon"; amzn_assoc_region ="GB"; amzn_assoc_placement =""; amzn_assoc_search_type = "search_widget";amzn_assoc_width ="auto"; amzn_assoc_height ="auto"; amzn_assoc_default_search_category =""; amzn_assoc_default_search_key ="";amzn_assoc_theme ="light"; amzn_assoc_bg_color ="FFFFFF"; </script><script src="//z-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&Marketplace=GB"></script>

    Note that I had to disable ALL my security and privacy tools before I could get the Amazon search box to display, as the advertising domain mazon-adsystem.com is blocked in most privacy-protection tools. So if you use any such tool on your router, computer, or browser, this may be blocking the ads from displaying on your computer.

Viewing 1 replies (of 1 total)

The topic ‘Amazon affiliate link won’t show’ is closed to new replies.