Posted in
WordPress Optimization |
Comments Off
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',...
Posted in
WordPress Optimization |
Comments Off
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 =...
Posted in
WordPress Optimization |
Comments Off
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...