How To Add A Javascript Code To Wordpress Post?

Discussion in 'WordPress' started by mystery, Dec 4, 2007.

  1. #1
    Hello everyone,

    Does anyone know how to do this? All I get is a blank field.... How do you add a javascript code to your wordpress posts?
     
    mystery, Dec 4, 2007 IP
  2. dvirhazout

    dvirhazout Active Member

    Messages:
    691
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Try to insert it within div tag..
    GL
     
    dvirhazout, Dec 4, 2007 IP
  3. mystery

    mystery Banned

    Messages:
    744
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't see a div tag.... is it in this form : <div> ...</div>?

    If so, it doesn't work.
     
    mystery, Dec 4, 2007 IP
  4. Diana13

    Diana13 Peon

    Messages:
    78
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you use visual editor when you write a post? Because I've noticed that I have some trouble with it. Try to deactivate it and then try to insert the script again.
     
    Diana13, Dec 4, 2007 IP
  5. John M.

    John M. Active Member

    Messages:
    1,087
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Do a google search for "adsense-deluxe wordpress plugin"

    Should come up while it's made for adsense it works with about almost any javascript code.

    - John
     
    John M., Dec 4, 2007 IP
  6. mystery

    mystery Banned

    Messages:
    744
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I already have it, but recently it only gives me this error when I click on add Adsense Block: "Cannot load adsense-deluxe.php"


    Diana, I'm using the code editor and not the visual editor... no use.
     
    mystery, Dec 5, 2007 IP
  7. John M.

    John M. Active Member

    Messages:
    1,087
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Strange, i never had that issuse copy your codes and re install teh plugin.
    Also make sure to look and see if it's enabled.

    - john
     
    John M., Dec 5, 2007 IP
  8. Diana13

    Diana13 Peon

    Messages:
    78
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Diana13, Dec 6, 2007 IP
  9. a-humblekid

    a-humblekid Peon

    Messages:
    90
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Go install an Adsense Deluxe Worpdres Plugin.
    you can add whatever codes there.
    hope it helps.
    thanks
     
    a-humblekid, Dec 6, 2007 IP
  10. Diana13

    Diana13 Peon

    Messages:
    78
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #10
    He has installed it but he got an errors.
     
    Diana13, Dec 6, 2007 IP
  11. mystery

    mystery Banned

    Messages:
    744
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Wow! Thanks Diana... advise works like a charm! Problem solved now, and my code displays properly!

    Thanks Everyone!
     
    mystery, Dec 6, 2007 IP