• On my blog I am reviewing a book, I want to give my readers th eopportunity to buy this book through Amazon but using my affiliate link. In edit mode the code is there on the front of the blog its gone. I assume WP is stripping it out, is there a way to get around this.

    Thanks in anticipation

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you trying to add the link or are you trying to iframe an Amazon page into your website?

    The best way to add affiliate links into WordPress is to click on the HTML tab and paste the code in manually. Because Amazon (and most other affiliate links) adds a tracking pixel (to track number of impressions) to your link it might be throwing WordPress in the Visual editing mode. You can return to Visual editing mode after pasting the link in the HTML mode.

    If you are trying to iframe a page into WordPress it requires editing of a WordPress page template which is pretty easy to do as well.

    Here is a tutorial on adding an iframe to a WordPress page. It’s about iframing a third party real estate search page but the principals are the same.

    I hope this helps!

    Thread Starter jimjam

    (@jimjam)

    Hi, all I want to do is add the following code into a post on my blog. Shouldn’t I just be able to paste it in, in html mode?

    <a href="https://www.amazon.co.uk/gp/product/1846857694?ie=UTF8&amp;tag=wwwmotorhomef-21&amp;linkCode=as2&amp;camp=1634&amp;creative=6738&amp;creativeASIN=1846857694"><img src="51UlAw-m3SL._SL160_.jpg" border="0" alt="" /></a><img style="border:none !important; margin:0px !important;" src="https://www.assoc-amazon.co.uk/e/ir?t=wwwmotorhomef-21&amp;l=as2&amp;o=2&amp;a=1846857694" border="0" alt="" width="1" height="1" />

    Yes, jinjam, you should be able to paste that link in HTML view and make it work IF you move the closing </a> AFTER the <img ..... /> in effect, <a etc><img etc /></a>

    Are you trying to add the Amazon code that displays the product image, product info and the buy now button?

    If so, I’ve found that the code doesn’t translate well into WordPress. Your best bet would be to use the Amazon image code (don’t forget to save the image file to your server, upload it and then paste the new image url in your code per Amazon’s recommendation) and then use the text link code from Amazon below that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I add an Amazon iframe’ is closed to new replies.