Add this in your child theme’s functions.php: add_filter(‘tc_logo_text_display’, ‘your_logo_display’); add_filter(‘tc_logo_img_display’, ‘your_logo_display’); function your_logo_display($output) { return preg_replace(‘/brand span3/’, ‘brand span10 offset1’, $output, -1); }
Function: add_filter()
63 posts
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 : […]