How to add dynamic data on contact form 7 email template?

Hi Guys, Today I would like to share my experience adding dynamic data on Contact form 7 email template.  The logic here is to create a hidden field and dynamically adding value on to the hidden field using wpcf7_posted_data filter hook. Step 1: Create a hidden field on contact form 7 form: I had created [hidden …

Advertisement

How to shuffle Deck of Cards?

Hi Guys, Today I will share my simple WordPress plugin on shuffling the card and distribute among  players,. Logic behind this is shuffling (total deck*52 card ) keeping their suit stick on it. So at the end we can extract the card on single player hand with their suit. Output:  You can download this WordPress …

How to activate drift message box?

Hello Guys, Today I will be sharing my experience on activating drift message box after certain specific time. I had achieved this by using javascript setTimeout() function. You can paste this code on theme custom js file or can use add_inline_script() function to add this script. var showwelcome_msg = function () { setTimeout( function() { drift.on('ready', …

WooCommerce downloadable links lost?

Hello Everyone, Today I am going to share my experience of debugging WooCommerce download links which was lost after the transferring the host. Actually transferring the host  sometimes broke the serialised data and in our case serialised value of   _downloadable_files  meta key was broken. After detecting the issue was from broken serialised data I went to …

How to use widget as a shortcode?

Hi Everyone, Today I will be sharing my experience on building shortcode from registered widgets. I had developed this feature on Styled Store Pro making all the custom widgets available as shortcode. A shortcode can be very useful on using the dynamic content on post/pages content and text widgets. I hope you guys know how …

How to add Navigation on Live composer gallery slider?

Live composer  gallery slider lacks the prev and next button. Hope this tutorial helps to add this button on live composer. Step 1: First create js files somewhere on your child theme. Here I kept js files inside child-theme/js/child-theme-custom-scripts.js. Step 2: Enqueue this scripts on the WordPress standard way. function child_theme_enqueue_styles() { $parent_style = 'parent-style'; …

How to add custom module tabs on Divi theme?

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 Divi/Includes/Builder/class-et-builder-element.php return apply_filters( 'et_builder_main_tabs', $tabs );    Now we are using new tabs on existing modules tabs. add_filter( 'et_builder_main_tabs', …

Divi Custom Module doesn’t appear on page/post edit screen?

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_ Let us suppose you are building custom module for accordion then I …

How to Add Metabox On Houzez Child Theme ?

Hello everyone, 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 …

How to use wp_dropdown_categories() on widget field?

Hello Guys, 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-> /** * Adds Foo_Widget widget. */ class Foo_Widget extends WP_Widget { /** * Register widget with WordPress. …