Title: Pasting code into wordpress
Last modified: August 21, 2016

---

# Pasting code into wordpress

 *  Resolved [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/)
 * When I get an affiliate code (which does have that affiliates web address by 
   the way) and paste it into my website, the code changes as it enters my website
   address in the front of the code. I have even pasted the code in a text editor
   and then into my site. When I click on the link from a word I selected to insert
   to code, it takes me back to my website instead of the affiliate Link site. When
   I research the code it has my website in the front of the code.
 * Sorry to include so much but this is been an ongoing thing for the 4 days. I 
   am stumped since I am new to wordpress.
 * I highlight the code, go to my editor, highlight a word,select insert link, update,
   then go to my website and select that word which is linked and it takes me back
   to my website per the code changing…(see below).
 * PLEASE HELP!
 * Thank you…..
 * (This is the current code)
    <iframe style=”width:120px;height:240px;” marginwidth
   =”0″ marginheight=”0″ scrolling=”no” frameborder=”0″ src=”//ws-na.amazon-adsystem.
   com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace
   =US&source=ac&ref=tf_til&ad_type=product_link&tracking_id=exerc4you-20&marketplace
   =amazon&region=US&placement=1490540296&asins=1490540296&linkId=ZL5SRI76W7Y6S3PP&
   show_border=true&link_opens_in_new_window=true”> </iframe>
 * (This is after I paste the code and update)
    [http://mywebsite.com/wp-admin/%3Ciframe%20style=%22width:120px;height:240px;%22%20marginwidth=%220%22%20marginheight=%220%22%20scrolling=%22no%22%20frameborder=%220%22%20src=%22//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=tf_til&ad_type=product_link&tracking_id=exerc4you-20&marketplace=amazon&region=US&placement=1490540296&asins=1490540296&linkId=ZL5SRI76W7Y6S3PP&show_border=true&link_opens_in_new_window=true%22%3E%20%3C/iframe%3E](http://mywebsite.com/wp-admin/%3Ciframe%20style=%22width:120px;height:240px;%22%20marginwidth=%220%22%20marginheight=%220%22%20scrolling=%22no%22%20frameborder=%220%22%20src=%22//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=tf_til&ad_type=product_link&tracking_id=exerc4you-20&marketplace=amazon&region=US&placement=1490540296&asins=1490540296&linkId=ZL5SRI76W7Y6S3PP&show_border=true&link_opens_in_new_window=true%22%3E%20%3C/iframe%3E)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/pasting-code-into-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/pasting-code-into-wordpress/page/2/?output_format=md)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043125)
 * That’s not a link, that’s an iframe. It’s a content embed, probably an interactive
   widget.
 * You can’t turn that code into a link, but Amazon should be able to provide you
   with just a URL if all you want to do is link it.
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043128)
 * When I click on the get link tab in amazon, that’s what is gives me.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043134)
 * The Get Link tab gives you an iframe? That doesn’t seem right at all. :/
 * I recommend getting in touch with Amazon over this, there has to be a way to 
   get a simple affiliate URL from them.
 * What they’re giving you now is an interactive iframe, not a URL which can be 
   used as a link.
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043138)
 * I agree and I will. Thanks for your help, response and recommendation.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043140)
 * You’re welcome!
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043308)
 * Hello all,
 * I have been trying to enter this Amazon affiliate link into my website, and each
   time after pasting the link it enters my website address at the beginning( see
   below). Any ideas why this keeps happening?
 * [You Are Your Own Gym: The Bible of Bodyweight Exercises](http://www.amazon.com/gp/product/0345528581/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0345528581&linkCode=as2&tag=exerc4you-20&linkId=ANBPFBFLPOISO34T)
   <img src=”[http://ir-na.amazon-adsystem.com/e/ir?t=exerc4you-20&l=as2&o=1&a=0345528581&#8243](http://ir-na.amazon-adsystem.com/e/ir?t=exerc4you-20&l=as2&o=1&a=0345528581&#8243);
   width=”1″ height=”1″ border=”0″ alt=”” style=”border:none !important; margin:
   0px !important;” />
 * [http://exercising4you.com/wp-admin/%3Ca=%22http://www.amazon.com/gp/product/0345528581/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0345528581&linkCode=as2&tag=exerc4you-20&linkId=ANBPFBFLPOISO34T%22%3EYou%20Are%20Your%20Own%20Gym:%20The%20Bible%20of%20Bodyweight%20Exercises%3C/a%3E%3Cimg%20src=%22http://ir-na.amazon-adsystem.com/e/ir?t=exerc4you-20&l=as2&o=1&a=0345528581%22%20width=%221%22%20height=%221%22%20border=%220%22%20alt=%22%22%20style=%22border:none%20!important;%20margin:0px%20!important;%22%20/%3E](http://exercising4you.com/wp-admin/%3Ca=%22http://www.amazon.com/gp/product/0345528581/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0345528581&linkCode=as2&tag=exerc4you-20&linkId=ANBPFBFLPOISO34T%22%3EYou%20Are%20Your%20Own%20Gym:%20The%20Bible%20of%20Bodyweight%20Exercises%3C/a%3E%3Cimg%20src=%22http://ir-na.amazon-adsystem.com/e/ir?t=exerc4you-20&l=as2&o=1&a=0345528581%22%20width=%221%22%20height=%221%22%20border=%220%22%20alt=%22%22%20style=%22border:none%20!important;%20margin:0px%20!important;%22%20/%3E)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043318)
 * You know I’m going to have to give you the same answer as above, right? 😉
 * That’s an interactive iframe widget. If you just want the widget, post it by 
   itself in the Text editor tab (not the Visual tab).
 * If you want a text link, the code you have won’t work, it’s not a URL, it’s an
   interactive widget. If you want a text link, you will need to get the affiliate
   URL from Amazon.
 * This is an Amazon problem, not a WordPress problem, you will need to contact 
   Amazon for help with getting just a plain affiliate URL, not an interactive iframe
   widget.
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043319)
 * MaxmanX I posted it again bc i needed you to see that it at least has the amazon
   url in it. So in an interactive frame such as this, even though it has the url
   it wont work?
 * I am trying to do both. If I post it in text editor alone will I be able to see
   after updating?
 * Before I contact amazon again, i wanted you to see this. Last time I spoke with
   them they said it was a wordpress issue.
 * Thanks for the follow-up…
 * k11summers
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043321)
 * Right, you need just the URL, and only the URL, that’s how any link works. 🙂
 * `<a href="URL goes here, not an iframe, just the URL">Text Link</a>`
 * An iframe is a stand-alone element, it’s a single interactive widget. There is
   no linkable URL in your iframe code, just the `src` which loads the iframe.
 * If you want the interactive iframe widget, not a text link, paste that into the
   Text editor tab (not the Visual tab), don’t make a link out of it.
 * If you want a text link, not an interactive widget, you will need to get a plain
   affiliate URL from Amazon.
 *  [Outdoorsmen](https://wordpress.org/support/users/outdoorsmen/)
 * (@outdoorsmen)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043323)
 * I pasted the code as given in one of my pages (text side) and it works fine.
   
   Paleo Diet:Lose 15 Pounds In… $6.30
 * <iframe style=”width:120px;height:240px;” marginwidth=”0″ marginheight=”0″ scrolling
   =”no” frameborder=”0″ src=”//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion
   =20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=tf_til&ad_type
   =product_link&tracking_id=exerc4you-20&marketplace=amazon&region=US&placement
   =1490540296&asins=1490540296&linkId=ZL5SRI76W7Y6S3PP&show_border=true&link_opens_in_new_window
   =true”>
    </iframe>
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043332)
 * I am new to all of this so when I copy the frame into my text section, when I
   update what am I supposed to see on my webpage? I can see a blank box in visual,
   but nothing when I update and go to my site.
 *  [Outdoorsmen](https://wordpress.org/support/users/outdoorsmen/)
 * (@outdoorsmen)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043337)
 * It could be a cache problem. Try clearing your cache.
 * I see an Amazon book link box with book cover showing a caveman holding a club
   next to a green apple. Selling for $6.30.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043349)
 * Can you give us a link to the post or page you added this to?
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043352)
 * This is what I posted:
 * [http://www.bodylastics.com/2009-0-3-6.html](http://www.bodylastics.com/2009-0-3-6.html)_[
   Advert moderated]_
 *  Thread Starter [k11summers](https://wordpress.org/support/users/k11summers/)
 * (@k11summers)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/#post-5043356)
 * Wrong post. That one works. The amazon widget I posted in the text all of a sudden
   worked. Go figure…..

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/pasting-code-into-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/pasting-code-into-wordpress/page/2/?output_format=md)

The topic ‘Pasting code into wordpress’ is closed to new replies.

## Tags

 * [links](https://wordpress.org/support/topic-tag/links/)
 * [pasting](https://wordpress.org/support/topic-tag/pasting/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 16 replies
 * 3 participants
 * Last reply from: [k11summers](https://wordpress.org/support/users/k11summers/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/pasting-code-into-wordpress/page/2/#post-5043504)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
