Definition WordPress hack: Element coded often inserted in the "function.php" file of your theme. The benefits of a hack are that it is much faster than a plugin, do not overload your blog and usually does not require updating.
Detect Visits In The Origin Mobile
Mobile browsing on the internet is increasing, so it is very useful to detect visits from users "mobile" and that, in order to redirect to a more appropriate and dedicated navigation smartphone or tablet page. To do this, you must firstly obtain complete information on Detect mobile browser website and transfer it in the directory of your theme, then change your header.php by placing the following code (do not forget to change the redirect page /your-website.com):Automatically resize The Images
If you use many images on your blog, then you know how tedious it is to have to always resize your images manually. Use this hack to automatically resize an image of your choice (width and height) for a more organized look. Just copy the following source code: script (click here) in a new document called "timthumb.php", place it in a folder on your site (eg: /scripts/) and call the image like this:Show Your Best-Of Annual
This hack allows your visitors to see the top 5 most commented articles on your blog over a year. This is a great way to give back to your second chance. To view a different time, just change the dates. ? Place the following code in your sidebar or anywhere else:Only Allow Your IP On Wp-Admin
If you do not have a collaborative blog and therefore multiple writers, you should be the only one allowed to visit the wp-admin directory. To increase the security of your site, enter your static IP address line 8. You can also add other IP addresses, if necessary, by creating a new line. Place the following code in your htaccess file.An Insert Author Bio on Each Item
It is sometimes useful to view the Bio of the author of an article, whether on a multi-author blog and when your articles are listed. If your theme does not offer this feature, insert the following code in your functions.php file. The biography of the author will be automatically displayed at the end of each article:Redirect Your RSS Feeds To FeedBurner
Whenever a user follow a link from your default stream (http://www.your-site.com/feed), it will be redirected to, your FeedBurner feed (http://feeds.feedburner.com/your-site). With this hack, even a user of your RSS feed origin; will be automatically redirected to FeedBurner. Place the following code in your htaccess file.Sources and resources for more hacks: Webdesignledger.
0 comments:
Post a Comment