-
▼
2011
(334)
-
▼
June
(28)
- How to Place JavaScript Into WordPress Pages
- How to Choose a WordPress Business Theme
- How to Use Google's AdSense With WordPress
- How to Change WordPress From Strict to Transitional
- How to Automatically Link WordPress Articles
- How to Find a WordPress Post ID
- How to Insert a Map Into WordPress
- How to Install FeedBurner for WordPress
- How to Add Clickable Logos in WordPress
- How to Add a Wordpress Blog to a Static Site
- How to Remove Phoenix Exploit From Your WordPress ...
- How to Access WordPress on HostGator
- How to Get Vietnamese in WordPress
- How to Add AdSense to a WordPress Theme
- How to Use PHP in WordPress Editor
- How to Do a Complete Uninstall of Wordpress From H...
- How to Use WordPress Mobile Edition
- How to Make a WordPress for Facebook
- How to Access Login to WordPress on your Web Server
- How to Embed Tweet Box With WordPress Plug
- How to Insert an Image Into a WordPress Blog Witho...
- How to Stop the Alphabetical Sorting of WordPress ...
- How to Upload Word Documents to Wordpress
- How to Center Headers in CSS on WordPress
- How to Use Images in a WordPress Template
- How to Create a Sitemap in WordPress
- How to Convert a WordPress Template to Fluid Width
- How to Make a WordPress Thumbnail Redirect to an E...
-
▼
June
(28)
adsense
How to Place JavaScript Into WordPress Pages
1. Log on to your WordPress blog.
2. Click on 'Appearance' and 'Editor.'
3. Select 'Header' from the list of templates on the right.
4. Add your JavaScript code using the online editor. The 'Header' template is the template where you add JavaScript required in the
section of an HTML page. If the JavaScript code is contained in an external JavaScript file, you can use the following code:
Replace 'myjavascript.js' with the URL of your external JavaScript file.
5. Click on 'Update File.'
6. Select the 'Page' template on the right.
7. Type in the additional JavaScript code needed in the body of the 'Page' template. If you need to call a JavaScript function from the code set up in the header section, use the following syntax:
myjsfunction();
8. Click on 'Update File' to save your changes.
5:56 AM | Filed Under | 0 Comments
Post a Comment