• Hi,

    I am using WordPress 4.5.4 and I am trying to add a code to a page. It is a code from affiliate network that is supposed to create a product store in the page. I don’t know if I am allowed to post the code here or not, but this is the first line : <script type=”text/javascript”>
    I tried many plugins for javascript but didn’t work.

    How can I add this code to a wordpress page ?

    regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    If I understand your inquiry correctly, you need to add a script to a single page.

    Meaning, you want it to only load on that particular page and not on the rest of the pages. If so, consider using this plugin:

    Per Page Add to Header

    This Plugin will give you a small box at the bottom of the page editor that you can use to add things to that page’s header.

    Mind you, loading scripts in the header is not very SEO friendly unless you async the scripts.

    —————————————————————————————-

    Just in case I understood wrong and you actually want the script to load in the body of the page,

    Then add the script text between these two tags on your page

    <script type="text/javascript">
    "Your Script Stuff Goes Here"
    </script>
    • This reply was modified 8 years, 3 months ago by j09.
    Thread Starter imbelhassen

    (@imbelhassen)

    thanks, but it turned out to be the “ad stop” in my browser that is stopping it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add Javascript in a page’ is closed to new replies.