Since Customizr v3.5+ Since Customizr v3.5, you can add a social link by adding this type of code to your functions.php : Before Customizr v3.5+ 1) Add them! Note : Tumblr now already included in the default Customizr social links. In your child theme functions.php add this simple snippet: add_filter(‘tc_default_socials’, ‘add_new_socials’, […]
Target: Widgets
I showed you how to add a widget area after the header a few weeks ago. But what if you feel you don’t have enough widget areas in the footer? Read on…
Like often in WordPress, the simpliest way to alter the core is to…dive in it and look for hooks! In the file wp-includes/default-widgets.php there is a filter hook called ‘widget_title’. That’s the one we need. It requires 3 parameters to work : the title we want to return, the instance […]
If you want to display the recent posts of the current category archive, there is a simple solution. You have to filter the query of the WordPress recent post widget. (one of the built-in widgets). The filter takes one parameter : the query arguments array. Here is the workflow : […]