All Customizer panel & section lost

Today after updating my site to latest WordPress  version 4.5. i came along this issue. My customizer  preview init is totally blank with no section and panel. Along with i got this error on console Uncaught TypeError: data.defaultValue.substring is not a function How i solved this issue? First I deactivated all plugin installed on a [...]

Advertisements

Error on WordPress

While debugging WordPress site, i found the following bug  that are really frustrating and brain storming. Grid mode may not work on media library Media gallery will  remain loading Admin panel may goes blank on switching theme or your front-end will remain totally blank without any error. Even if you had enable wp_debug mode. Widgets automatically close [...]

How to add Woocommerce product category on customizer?

Here is the steps you need to follow to add product category on customizer without extending customize class: Add section for the woocommerce  setting add setting for the category add select option on add control function Create custom function to list category create function for sanitization add_action('customize_register', 'your theme_theme_customize'); function your_theme_theme_customize($wp_customize) { //create section $wp_customize->add_section( [...]

What are hooks on WordPress?

Most of the people may gone through many article on filter or action hook, but still can't get concept on hook of WordPress , then you are on the best place to learn. Here i am not going to illustrate about basic theoritical meaning of hooks, just i will provide simple demonstration on hooks. Before [...]

How to change number of woocommerce related products through customizer setting?

Ok, lets start from creating  user interface  through customizer API. Hope you guys know about Customizer setting API API of WordPress. This is how i build user interface to choose number of related products on theme. First add this code inside "customize_register" hooks. //create section  for woocommerce setting $wp_customize->add_section( 'woocommerce_settings', array( 'title' => __( 'Woocommerce Settings', [...]