-
▼
2013
(302)
-
▼
September
(24)
- How to Upload an MP3 to WordPress
- How to Post a Podcast on a WordPress Blog
- How to Backdate Your Posts in WordPress
- How to Keep Comments Open in WordPress
- How to Get Your Pictures Side
- How to Find a WordPress Page on My Server
- How to Find the Number of a WordPress Page
- How to Update WordPress 2.3 to 3.0
- How to Create Columns in Wordpress
- How to Change the User Name Password in Wordpress
- How to Add Dates to WordPress Posts
- How to Make a Contact Form on a WordPress Template
- How to Use WordPress
- How to Add PDFs to WordPress
- How to Get Rid of Time Author in WordPress Blog P...
- How to Moderate Comments on a WordPress Blog
- How to Get WordPress to Use Google CDN
- How to Learn WordPress CMS
- How to Add Twitter Reactions to WordPress
- How to Reinstate a WordPress Blog
- How to Move WordPress to a Root DIR
- How to Track Wordpress Blog Visits
- How to Change WordPress Autosave Features
- How to Export a Blogroll From WordPress
-
▼
September
(24)
adsense
How to Get WordPress to Use Google CDN
1. Go to your website's 'wp-admin' directory and log in to the WordPress dashboard. Click 'Appearance' in the menu on the left-hand side of the screen and then click the 'Editor' link that appears.
2. Locate your 'functions.php' file in the list under 'Templates' on the right-hand side of the 'Edit Themes' screen. Click the link to open the file. Scroll down to the bottom and add this code:function register_google_cdn_jquery() {wp_deregister_script('jquery');wp_register_script('jquery', ' http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');wp_enqueue_script('jquery');}Make sure this code goes above the ending '?>' PHP delimiter. You can change 'register_google_cdn_jquery' to another function name if you like. The above example shows how to deregister the copy of jQuery that comes with WordPress and register the Google CDN version, but you can do this for other scripts hosted by Google.
3. Add this code after your function that registered the Google CDN script:add_action('init', 'register_google_cdn_jquery');You must match the second parameter to the name of the function you used to register the Google CDN script. The first parameter, 'init,' is the initializer for WordPress. In simple terms, the next time you run WordPress, the 'register_google_cdn_jquery' function will run.
4. Click the blue 'Update File' button to save your work.
1:31 AM | Filed Under | 1 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Thanks for this advice , can We also Add Google Ad sense by the way Belterra Casino Resort