How to add JavaScript code to WordPress website or blog

Many people have asked me that they want to add the codes of my blog How to disable Copy and Paste in your website and How to disable right click menu on website into their WordPress website.

This blog is showing each and every steps which are needed to add those codes into the WordPress Website or Blog.

Step 1: Go to your WordPress login page and type your “Username” and “Password” to login.

Customize WordPress js
Login to WordPress

Step 2: Go to Plugins area.

Customize WordPress js
WordPress Dashboard

Step 3: Click on “Add New” button from top side of the plugins page.

Customize WordPress js
Plugins

Step 4: Search a plugin named Header and Footer Script.

Customize WordPress js
Search Plugins

Step 5: Click on install button to install that plugin and after that activate it.

Customize WordPress js
Install plugin
Customize WordPress js
Activate plugin

Step 6: Now go to settings -> Header and Footer Script.

Customize WordPress js
Header & footer script menu

Step 7: Write all your JavaScript code to the header part. Codes are shown in my previous blog.

Customize WordPress js
Adding JavaScript Codes

Step 8: Click on Save Settings.
customize WordPress js

Now your website is loaded with customized JavaScript code.

These Steps are also present in Video.


4 thoughts on “How to add JavaScript code to WordPress website or blog

  1. Howdy! Someone in my Facebook group shared this website with us so I
    came to check it out. I’m definitely enjoying the
    information. I’m book-marking and will be tweeting this
    to my followers! Great blog and wonderful design and
    style.

  2. I just could not depart your website prior to suggesting that I extremely enjoyed the usual info a
    person supply in your guests? Is going to be again steadily in order to check out new posts

  3. Amazing things here. I’m very satisfied to see
    your article. Thank you a lot and I am taking a look ahead to contact
    you. Will you please drop me a mail?

Leave a Reply

Your email address will not be published. Required fields are marked *