This code snippet adds a preview button to the right of the Save button in Distraction Free Editor in WordPress. Drop the code in your active theme’s functions.php file.
Snippets
A simple CSS3 code that will generate a menu like this: Home | About | Contact | Sitemap – each link separated with ‘|’ (vertical) bar. <style type=”text/css”> ul#nav li{ float:left; margin-right:20px; list-style:none; } ul#nav li:after{ content:’|’; margin-left:20px; } ul#nav > li:last-child:after{ content:”; margin-left:0; } </style> <ul id=”nav”> <li><a href=”#”>Home</a></li> […]
This code snippet will allow you to show different number of posts on homepage, per category, and post type without using any plugin.
Learn how to view list of existing partitions in Windows, delete a partition, create a new partition, format partition, and more using Windows PowerShell.
This PowerShell command will show you size information of disks, partitions, and volumes in Windows 8.
Add any of these code snippets to your active theme’s functions.php file in order to include or exclude one or more categories from the loop on your home page.
Drop this code snippet into your theme’s functions.php file to enable user login with email address, and also change login page text to inform about this functionality.
A WordPress code snippet to add navigation links to next and previous posts in the Post Editor page. Links are also shown for custom post types.
This snippet of code will allow you to add custom media type filters in the WordPress Media Library. The code as it is will add filters for DOC, XLS, PDF, and ZIP files.
This script will allow you to automatically search and replace a specific text in the clipboard with something else that you define.