1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to add a single "<script>" tag to the page's "<body>" tag in WP ?

Discussion in 'Web Design' started by mic141414, Apr 8, 2014.

  1. mic141414

    mic141414 Regular Member

    Joined:
    Jul 3, 2008
    Messages:
    344
    Likes Received:
    117
    Location:
    USA
    Home Page:
    Hello,

    I need to add some code (Live chat code) into a single page on my WP ... the only plugins or standalone scripts i found set the code on every pages of my WP site so the chat appears on every page instead of the only one i want.

    I contacted one seller of these plugin and he said "but if you find a plugin that can put the "<script>" element on a single page (or do it manually instead of using a plugin), then you can place it on single pages too. "

    Anyone knows how to do it ? add the code manually in only one page of WP ?

    thank you
     
  2. vah1de

    vah1de Jr. VIP Jr. VIP

    Joined:
    Aug 27, 2013
    Messages:
    168
    Likes Received:
    29
  3. vah1de

    vah1de Jr. VIP Jr. VIP

    Joined:
    Aug 27, 2013
    Messages:
    168
    Likes Received:
    29
    • Thanks Thanks x 1
  4. THUNDERELVI

    THUNDERELVI Elite Member

    Joined:
    Sep 12, 2009
    Messages:
    2,202
    Likes Received:
    1,730
    Gender:
    Male
    Location:
    W3
    Navigate to editor -> find the page you want to edit -> Edit Code -> Save!
     
  5. V

    V Elite Member

    Joined:
    May 18, 2012
    Messages:
    2,113
    Likes Received:
    2,543
    Occupation:
    Student
    Location:
    /tmp
    If you want to add the script to the head of a single page then use "per page add" plugin, and if you want to add the script in the body part of the page then edit the page in text mode (in WordPress) and paste the code directly in it. I always do this for my content lockers and so far it worked fine for me. Hope it helps :) ;)

    If you still need help, PM me :)
     
    • Thanks Thanks x 1
  6. mic141414

    mic141414 Regular Member

    Joined:
    Jul 3, 2008
    Messages:
    344
    Likes Received:
    117
    Location:
    USA
    Home Page:
    this one https://wordpress.org/plugins/per-page-add-to/ ?


     
  7. mic141414

    mic141414 Regular Member

    Joined:
    Jul 3, 2008
    Messages:
    344
    Likes Received:
    117
    Location:
    USA
    Home Page:
    i use optipress and my specific page is not listed in editor .. only template pages

     
  8. mic141414

    mic141414 Regular Member

    Joined:
    Jul 3, 2008
    Messages:
    344
    Likes Received:
    117
    Location:
    USA
    Home Page:
    great !!! i tried to install the hifi plugin suggested above .. nothing appeared on my page and while looking I discovered that optipress allows to add a code ...never seen that before !!! Youpi !
    Thank you guys, found it thanks to you
     
  9. SEOnetic

    SEOnetic Senior Member

    Joined:
    May 21, 2012
    Messages:
    995
    Likes Received:
    120
    That would be ok if manually put the code.