A short WordPress tutorial about properly removing an action or a filter hook if they are added within a class.
Author - Bojan Petrovic
A developer’s workaround for passing variables through get_template_part function in WordPress to completely avoid global statements.
In version 4.4, WordPress added a cool feature to automatically handle responsive images. While it should be useful in most cases, here is a quick way to disable srcset feature if you are facing any issues after updating to WP 4.4.
In this tutorial we are going to show you 3 ways to change your WordPress date and time format to “time ago” format like 1 hour ago, 3 weeks ago, 4 days ago, etc…
Useful PHP snippet which allows you to automatically change all your featured image alt tags to post title and improve SEO on your WordPress website.
WordPress offers very useful built in functionality where you can specify image size for galleries within dashboard. But, what if you want to automatically change image size for all galleries? Here is a neat solution with just couple of lines of PHP code.
Far all the developers, WordPress has created a nifty function called wp_parse_args which is quite useful when merging two sets of data arrays and is similar to native PHP function array_merge. The only lack of feature is that it is not recursive which makes it unable to handle and merge multidimensional arrays properly. Luckily, here is our solution.
Did you know that WordPress automatically generates multiple archive URLs for your website? While it may be useful in some cases, it may also hurt your SEO by generating duplicated content and unnecessary pages. Luckily, there is a quick and easy solution.
Here is a handy snippet with which you can easily get your current URL on your WordPress website. It doesn’t matter if you are on single post, page, home, archive, custom post or any other WordPress template.
Sharing your stuff via social networks is important. As well as page loading time! This quick tutorial will show you how you can asynchronously load social sharing buttons inside WordPress theme and improve your page speed.
Some time ago, several of our users complained that pagination on our themes is not working properly. Actually, we have found out that this is not theme related issue and it was caused only if Facebook WordPress plugin was installed and activated on their websites. And then we came up to solution with handy snippet which will prevent the issue.
Nowadays, many WordPress themes use horizontal sidebar areas or footer areas, not only a classic WordPress right or left vertical sidebars. In the following example, we are going to show you how can you add last class to every third WordPress footer widget so you can style this widget to fit the theme design.
If you struggle with converting hexadecimal color codes to RGB or even RGBA using PHP, here’s the function which we made and which might help you.
If your WordPress website has a lot of tags (and growing), you may probably struggle with bad looking messy list inside the tag cloud widget. But you would rather show descent number of tags instead of removing the widget, right?