adsense

How to Insert JavaScript on WordPress





1. Open a Web browser window on your computer. Type the WordPress blog's domain name in the navigation text box. Click the 'Admin Dashboard' link on your blog to access the admin area.
2. Type the blog's administrator user name and password in the login screen. Click 'Log In' to access the dashboard section.

3. Click 'Appearance' in the left panel. Click 'Editor' to open the editor where you can insert the JavaScript code. Click the PHP file you want to use to insert the code. Typically, you insert the code in the 'header.php' file.
4. Insert the JavaScript code. For instance, if you want to link to an external JS file, type the following code:


5. Click 'Update File' at the bottom of the dashboard. The new JavaScript code is included in the blog when readers access the domain.

Comments

0 Responses to "How to Insert JavaScript on WordPress"

Post a Comment

Popular Posts

About