WordPress.org

Ready to get started?Download WordPress

Forums

How to add Javascript to a post (5 posts)

  1. BaldThoughts
    Member
    Posted 5 months ago #

    I am trying to add this HTML/script to a page and post within one of my sites --- FlyToTheGame.com, but when I paste into "Visual" nothing happens. When I paste into "Text" nothing appears in "Visual" when I click over... even after saving or trying to "Preview" the page.

    '<script type="text/javascript" src="http://imps.[website].com/imps_single_offer.php?&sid=347&aid=06e2&cid=2263"></script>'

    In this code [website] refers to a 3rd party's site (affiliate relationship).

    Please help. Thanks!

  2. BaldThoughts
    Member
    Posted 5 months ago #

    Here is the full code...

    '<script type="text/javascript" src="http://imps.cardsynergy.com/imps_single_offer.php?&sid=34887&aid=06ebae12&cid=22086363"></script>'

    I appreciate your help!!!

  3. Peter_L
    Member
    Posted 5 months ago #

  4. BaldThoughts
    Member
    Posted 5 months ago #

    Peter, thanks for the link. I'm having a hard time understanding what's written there. I've read and re-read that page several times, but it's speaking a language I just cannot grasp.

    I would really appreciate some additional guidance.

    Thanks!

  5. Peter_L
    Member
    Posted 5 months ago #

    To put is simply, you can't just add an external js file inside your text editor and expect it to work.

    Try this explanation:
    http://www.tipsandtricks-hq.com/how-to-add-javascript-in-a-wordpress-post-or-page-1845

Reply

You must log in to post.

About this Topic