Useful resources for bloggers
Currently Browsing: WordPress Optimization

Include jQuery from Google in WordPress

If you want to use jQuery JavaScript library in your WordPress theme, the best choice is to load the version hosted on Google servers instead of the local one shipped by default with WordPress. To load jQuery from Google you have to edit the functions.php file of your theme adding these lines of code: if( !is_admin()){ wp_deregister_script('jquery'); wp_register_script('jquery',...

How to avoid the same meta description on Tag archives with Thesis theme

Thesis is a great theme for WordPress (this blog uses it ) but I don’t like the way it handles the meta tag description on all the Tag archive pages. In fact, Thesis repeats the blog descrption on all these pages. In order to avoid this, you have to edit the file \lib\classes\head.php (around line 104) of your Thesis theme. You have to change it from: elseif (is_category()) { $category_description =...

Speed up WordPress using compression

Here’s a tip from Brad Ney about how to speed up WordPress load times using web server compression: First of all, upload a test file like “test.php” on your web server.  This file must contain this line: <?php phpinfo(); ?> View this file with a web browser and check if “zlib” is enabled by your hosting provider. It it’s ok, place the following code in your header (above...

Powered by WordPress | Designed by Elegant Themes