Tag Archives: Hacks

How To Fix WordPress Fatal Error: Out Of Memory (Allocated xx…) (Tried To Allocate xx…) Bytes ?

In WordPress Fatal Error: Out Of Memory (Allocated xx…) (Tried To Allocate xx…) Bytes comes when certain PHP scripts require more than the default given memory in PHP.

Continue reading How To Fix WordPress Fatal Error: Out Of Memory (Allocated xx…) (Tried To Allocate xx…) Bytes ?

How To Stop Hotlinking Via .htaccess?

Hotlinking means showing images from other sites which increases bandwidth usage. You can stop Hotlinking in your WordPress site. All you need to do is open .htaccess file present in your WordPress root directory and the given code.

RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?mysite.com/.*$ [NC]
RewriteRule .(gif|jpg|swf|flv|png)$ /feed/ [R=302,L]

Quick, Easy & Clean Way To Add Hacks In WordPress Without Touching Functions File

Now no need to hack theme’s function.php file, you have more easy option to add hacks in WordPress. Hacking function file is easy but keeping those hacks safe is not, everytime you update or activate another theme you have to edit its function file by adding all those hacks back which you were using before.

Continue reading Quick, Easy & Clean Way To Add Hacks In WordPress Without Touching Functions File

How To Keep WordPress Blog Images Proportional And Smooth On Every Screen Size ?

By default all images used inside your posts, pages and other post types in WordPress has some width in pixels and hence they are not responsive at all. In this tutorial we will show you how you can easily make your images fluid (responsive) so that they can be viewed on small screen devices too.

Continue reading How To Keep WordPress Blog Images Proportional And Smooth On Every Screen Size ?

How To Add A Cool Header Navigation Menu In P2 Theme Of Your WordPress Blog ?

P2 is a group blog theme for short update messages, inspired by Twitter only for WordPress users. It doesn’t give you a header navigation by default but if you like adding a cool minimalist header navigation menu the you can do it very easily. Just follow simple steps mentioned here.

Following image shows how your navigation will look like after following given steps. You can easily change its look by editing CSS.

Continue reading How To Add A Cool Header Navigation Menu In P2 Theme Of Your WordPress Blog ?

How To Add Custom CSS to WordPress Admin Bar Without Disturbing Core Or Using Hack ?

You can customize WordPress admin bar. You can change its color, size and other style  by adding some custom CSS. Generally this is done by adding a function to your theme’s function.php file. Second method includes editing siteroot-> wp-includes->css-> admin-bar.css file but I would not recommend you changing the core css files. As far I know there are no plugins available that allows you add custom color to wp admin bar.  Here I am discussing another method which easily customizes your wp admin bar without disturbing anything on your site.

Continue reading How To Add Custom CSS to WordPress Admin Bar Without Disturbing Core Or Using Hack ?

How You Can Hide Theme Editor From WordPress Dashboard ?

If you like hiding WordPress theme editor from dashboard then all you need to is add a function in your theme function file.  Copy and paste the following code in your theme’s function.php file editing the username given in the following code to you own. Changing the username in the following code will make theme editor visible to that admin who’s username is written in the code:

Continue reading How You Can Hide Theme Editor From WordPress Dashboard ?

How To Embed A Live Twitter Hashtag Search Inside A WordPress Post ?

You can easily embed a live Twitter Hashtag search in your WP post. You may do this either by using a Twitter Feed for WordPress plugin (via shortcode) or by creating your own Twitter Widget

Continue reading How To Embed A Live Twitter Hashtag Search Inside A WordPress Post ?

How To Change Login Logo URL In Your WordPress Site ?

Now you you how to customize your WordPress login screenLimit Access To WordPress Login Page and Customizing Logo Of WordPress Login Page. Here in this tutorial I am discussing about adding a custom link to your WordPress login logo as default logo link points to WordPress.org

Continue reading How To Change Login Logo URL In Your WordPress Site ?