Add HTML TextArea Tag for Affiliate Codes in Wordpress


Many bloggers out there launch their own products and also run affiliate sales for which someone can earn commissions if they are able to sell the owners product.

Now if you're the owner of such product or e-book or whatever may be and you need create an affiliate code and you need others to copy-paste that code easily. The easier it is to copy-paste the code the more promoters you will find for your product.

Recently, I helped out a very close friend of mine with something like this - Garen Arnold of Blog Setup Guide. He has created an ebook called the Killer Komodo Dragon Backlink Guide which helps you to SEO your posts to increase the rankings of your individual posts.

He is also allowing others to promote his e-book. When a promoter makes a sale, he gets 50% commission of the price of the book. I had to help him out with his JVZoo Affiliate Code. He needed a system using which anyone could copy and paste the code on their blog to promote his book.

He was already using the Snippet Plugin. But it had some problem. It was stretching his landing page completely out of proportion. So, I had to use the HTML Textarea tag along with the onfocus feature so that whenever someone clicks inside the textarea , then the whole post would get selected.

killer-komodo-468x68

Now, I'm posting the code here that I used on the Garen's page itself.

The output would look like this :



The onfocus feature can really help as the users don't have to select the whole code as it gets highlighted automatically once you click inside the text.

If you want to check out the page I have worked on, here's the link.

If you have any problems , just drop off a comment and I will take a look.

Top