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

WP help required

Discussion in 'Blogging' started by Jeevs, Mar 5, 2011.

  1. Jeevs

    Jeevs Supreme Member

    Joined:
    Dec 14, 2010
    Messages:
    1,359
    Likes Received:
    1,628
    Hey guys..m kinda blogger guy so don't know much about WP! I am trying to paste a javascript code in the <body> tag..its easy to edit HTML in blogger but what about WP?
    Can anyone give a step by step guidance on how to add that script in between <body> tag in WP?
    Thanks :)

    n actually my friend needs it ;) m ok wid my blogger :D
     
  2. Zak_A

    Zak_A Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 16, 2008
    Messages:
    808
    Likes Received:
    873
    Gender:
    Male
    Occupation:
    WP designer & developer
    Location:
    Western Europe
    In your WP admin panel go to Appearance > Editor. There you can edit the html and css code of all you theme's files really easily. All of these file appear on the right side.
    The <body> tag you're looking for starts in header.php (sounds strange I know, but header.php contains the actual html <head> but also the page's header :) )

    BTW, "I am trying to paste a javascript code in the <body> tag" make me think of a G's analytics tracking code. If this is the code you're trying to add, try some free plugin that will do it for you even more easily :)
     
    • Thanks Thanks x 1
    Last edited: Mar 5, 2011
  3. Jeevs

    Jeevs Supreme Member

    Joined:
    Dec 14, 2010
    Messages:
    1,359
    Likes Received:
    1,628
    no no..its just a script to disable right click ;) Thanks by the way...
     
  4. Skygrinder

    Skygrinder Newbie

    Joined:
    Dec 10, 2009
    Messages:
    11
    Likes Received:
    1
    Occupation:
    Web Developer
    Location:
    Athens
    Why are people still doing this?
     
  5. Jeevs

    Jeevs Supreme Member

    Joined:
    Dec 14, 2010
    Messages:
    1,359
    Likes Received:
    1,628
    God knows....my friend said he wants that..I know its not a full protection...but at least it keeps away cheap leechers...;)
     
  6. redstone.1337

    redstone.1337 BANNED BANNED Jr. VIP Premium Member

    Joined:
    Dec 30, 2009
    Messages:
    1,259
    Likes Received:
    999
    As far as i knew, disabling text selection or disabling right click, also hampers indexing.... don't know if there is some new script now!
     
  7. Jeevs

    Jeevs Supreme Member

    Joined:
    Dec 14, 2010
    Messages:
    1,359
    Likes Received:
    1,628
  8. extremephp

    extremephp BANNED BANNED

    Joined:
    Oct 19, 2010
    Messages:
    1,293
    Likes Received:
    1,272
    Login to your WP Admin Dashboard.

    Yoursite.com/wp-admin

    Now, go to appearance > theme editor.

    Click on Header.php from the files.

    Copy your javascript to the end of header file and it is all done for it.

    Well, If I want to copy your contents, I would open a new instance of firefox, and disable javascript and copy it all out. You cant really prevent people from copying, if they have a mind to break the protection.

    Good Luck!

    ~ExP~
     
  9. akhilesh

    akhilesh Newbie

    Joined:
    Jan 15, 2011
    Messages:
    16
    Likes Received:
    2
    If someone really wants to copy anything they would just save the page to get everything or Ctrl+A ....that javascript is of no use...:D
     
  10. cjbmeb14

    cjbmeb14 Regular Member

    Joined:
    Jul 17, 2008
    Messages:
    228
    Likes Received:
    276
    Occupation:
    Self Employed
    Location:
    Worcester,UK
    You could try using this plugin WP-CopyProtect
    it might be easier for you.
     
  11. jeanywill

    jeanywill Registered Member

    Joined:
    Mar 10, 2011
    Messages:
    56
    Likes Received:
    4
    Yes It's more simple than make any modification the template, also you can search some similiar plugins with this at Plungins->Add New
     
  12. starlidaniel

    starlidaniel Newbie

    Joined:
    Mar 16, 2011
    Messages:
    15
    Likes Received:
    2
    Yeah..by using WP copy protect plugins you can do this as it will be more easier for you. I tried this and it takes hardly few minutes.