Did you know that WordPress has a mobile detect function already. In this post we will show you how you can use wp_is_mobile function to create a simple shortcode to hide certain parts of your posts from mobile visitors or the other way.
If your hosting server is not fast enough, you may want to replace your self-hosted #jquery with google cdn hosted jquery. You may think that you are not using that script anyways, but most of your #plugins do.
WordPress usually use a constant number of posts for all your category pages, index, and also search results pages. For search pages, 10 posts are not usually enough. To change this behaviour, a simple query filter will do the trick.
We all have some favorite fonts, but when it comes to cross-platform design, we have to choose our fonts families carefully. So I made a huge list of font stacks that suit really good. Make sure you add this list to your favorites.
Random posts can be a great opportunity to generate hits for older content. Especially for gaming and portfolio sites this snippet will be great use. Here is how to set it up for your theme.
Using this simple snippet, you can easily get files in a directory as an array. It even allows file type filters.
To display your latest tweet on your site just add the following function in your functions.php file.
For theme designers sometimes #php is better than #shortcodes. So here i will show you how to easily add countdown widget to your theme file. You need to know some php to integrate it with your posts.