Blog

Developers : in Customizr v3.2.1, the hooks API now includes 365 hooks to extend the theme! Check them out here.


Performance improvements for themesandco.com 2

Optimizing the page load of a WordPress website is not an easy task. The first think you need to do is to monitor your page load indicators. I usually test my websites with 4 well known online tools : Webpagetest.org Pingdom tools GTMetrix Google Insight   Results   Results on GTMetrix   Results on www.webpagetest.org   […]

double-A-on-GTMetrix

Customizr WordPress theme v3.1.24 is live

https://wordpress.org/themes/customizr

Changelog :

= 3.1.24 Septembre 21st 2014 =
* fixed : (php, class-fire-init.php#393 ) check if defined( ‘WPLANG’). WPLANG has to be defined in wp-config.php, but it might not be defined sometimes.
* fixed : (php, class-content-slider.php) the slider loader block has been taken out of the carousel inner wrapper. Fixes the issue reported here : http://www.themesandco.com/customizr-theme-v3-1-23-tested-wordpress-v4-0/#li-comment-235017. The slider loader is diplayed by default for the demo slider.
* added : (php, class-fire-init.php) new option in Customizer > Images => checkbox to display a gif loader on slides setup. Default == false.
* added : (php, class-content-post_navigation.php) 4 new filters to get control on all the options of the single and archive post navigation links : tc_previous_single_post_link_args, tc_next_single_post_link_args, tc_next_posts_link_args, tc_previous_posts_link_args
* improved : (php, class-fire-utils.php#315 ) cleaner code for the fancybox filter on ‘the_content’
* improved : (php, class-fire-ressources.php) performance : holder.min.js is now loaded when featured pages are enabled AND FP are set to show images


Warning: call_user_func_array() expects parameter 1 to be a valid callback

This is a recurring error when dealing with actions/filter in WordPress.

The full warning message is actually : Warning: call_user_func_array() expects parameter 1 to be a valid callback array must have exactly two members in…/wp-includes/plugin.php on line 214

 

In my case, it is usually caused by a filter or an action not properly declared. Typically a parenthesis  at the wrong place like :

See the problem ?

The priority must be outside the callback array parameter as follow :

 


Customizr theme v3.1.23 : tested with WordPress v4.0 39

The version 3.1.23 of the theme has a loooong list of changes.  Most of those updates/improvements are “under the hood”, in other words, you won’t notice them but they contribute to make the theme safer, faster and easier to extend. Of course, the new release of the theme has been successfully tested with WordPress 4.0 as […]

Benny_Goodman-1971

Quick fix for the Customizr – OptimizePress conflict

There’s a reported bug when combining the Customizr theme with the plugin OptimizePress : the OptimizePress editor in admin does not seem to work properly. This was caused by the fancybox script coming with the Customizr (lightbox), in conflict with Optimize Press

Solution  :

There are two ways to fix the issue :
1) Method 1 : in appearance > customizer > images : uncheck “Enable/disable lightbox effect on images”
2) Method 2 : add the following code in your functions.php of the child theme :