Divi modules normally come up with three modules tabs
What if we want to add new tabs for our custom modules? Divi theme provides awesome filter to add tabs on your module. You can see on
return apply_filters( ‘et_builder_main_tabs’, $tabs );
If your custom module disappears after publishing the page then you are on right place.I spend almost 3-4 hours to debug this error but and found there is simple fix for this.
The solution is to prefix the custom module slug with et_pb_
Today I am going to share my experience while adding metabox on child theme using metabox.io on Houzez child Theme
Houzez Theme use metabox.io plugin to create metabox field on custom post type property as well default WordPress Post type. While using “”rwmb_meta_boxes” filter hook on child theme I came to lost all the metafield created by Houzez Parent Theme. So I start to dig on the code and found that houzez theme provides “houzez_theme_meta” to extend metabox field. You can see this filed on this template:
houzez -> frameworkd -> metabox -> houzez-meta-boxes.php.
Let’s see how we can implement wp_dropdown_categories() on widget field.
Here I am implementing codex way of making widgets: see here for reference: https://codex.wordpress.org/Widgets_API
You can see more about wp_dropdown_categories() here: https://codex.wordpress.org/Function_Reference/wp_dropdown_categories
So here we go-> Continue reading
Today I am going to illustrate on , how to cropped image on customizer.
Normally we use WP_Customize_Image_Control for selecting image on customizer section, but this doesn’t provide you the featured to cropped image on your requirement.
But WordPress provide us class called ‘WP_Customize_Cropped_Image_Control‘ which provide you the featured to crop a image.You can see full code here: https://core.trac.wordpress.org/browser/tags/4.6/src/wp-includes/customize/class-wp-customize-cropped-image-control.php#L17
Before starting the tutorial I hope you all guys know how to add section, setting and control on customizer.
Step 1: First create section: Continue reading
We can get many tutorial and article in making selective referesh on customizer, which is introduced on WordPress Version 4.5.
Here is the answer of the question if you find your customizer selective referesh is now working even you followed the whole procedure that is given on wordpress codex or by many of our Admin member.
Here is the procedure for adding custom image size on metabox/metafield of post
I hope you all are familiar with after_setup_theme theme hook. Here i first defined image size using add_image_size function:
//adding function_exists() before function will let user to customize the same function on child theme
if ( !function_exists( ‘theme_slug_image_size_for_metabox’)) :
//set thumbnail image for recent post
add_image_size ( ‘themeslug-thumbnail-recent’, 80,100,true);