WP help required

Jeevs

Supreme Member
Joined
Dec 14, 2010
Messages
1,372
Reaction score
1,652
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
 
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 :)
 
Last edited:
In your WP admin panel go to Appearance > Editor. There you can edit the html and css code of all you theme's files.
The <body> tag that will be used in every page of your blog (homepage, page, post, category's pages etc.) is in header.php.

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 :)

no no..its just a script to disable right click ;) Thanks by the way...
 
Why are people still doing this?

God knows....my friend said he wants that..I know its not a full protection...but at least it keeps away cheap leechers...;)
 
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!
 
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~
 
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
 
You could try using this plugin WP-CopyProtect
it might be easier for you.
 
You could try using this plugin WP-CopyProtect
it might be easier for you.

Yes It's more simple than make any modification the template, also you can search some similiar plugins with this at Plungins->Add New
 
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.
 
Back
Top