Using Link Enhancer in Wordpress Blog?

Discussion in 'Amazon' started by dalster44, Jan 13, 2009.

  1. #1
    How or can you use link enhancer in a wordpress blog seeing as its all PHP.

    Here is a sample snippet:

    <script type="text/javascript" src="http://www.assoc-amazon.com/s/link-enhancer?tag=xxxxxxxxx-20&o=1">
    </script>
    <noscript>
    <img src="http://www.assoc-amazon.com/s/noscript?tag=xxxxxxxxxx" alt="" />
    </noscript>

    Your suppose to put in footer or a bottom page.

    Problem is I can't get it to work in my blog.

    Any odeas, instructions would be appreciated.

    Thanks
     
    dalster44, Jan 13, 2009 IP
  2. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #2
    You mean JavaScript, not PHP, but anyway, it shouldn't be a problem, you just edit the footer template in your WP backend - have you got that far? If you're trying to insert it in a single post, basically you can't, not without a plugin.

    I don't know Link Enhancer, but most scripts are inserted before the </body> tag, which is usually in the footer file in a WP template, then just save. If it's not working then, then LE ought to provide support since it's a paying service.
     
    markowe, Jan 14, 2009 IP
  3. dalster44

    dalster44 Active Member

    Messages:
    722
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    60
    #3
    I meant the blog written in PHP :)

    Anyways, I went to place in footer but its Encrypted coding so its a no go. I guess I'll contact LE

    Thanks
     
    dalster44, Jan 14, 2009 IP
  4. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #4
    Aha, yes, gotcha now!

    Should be no reason not to be able to mix PHP and JavaScript - you've just got to make sure you don't paste the <script> in between the <?php ?> tags, but I am not sure what you mean by encryption. Anyway, they should provide support - WP is no different from any other PHP site in terms of structure.
     
    markowe, Jan 14, 2009 IP