How to Create Loop Element Using Visual Composer API

How to Create Loop Element Using Visual Composer API
139 Views

When we are making site with visual composer some time not possible to built some designs using visual composer elements. So at that time we need to use HTML element for built designs. But visual composer API provide facility to built own custom element for some special requirements and its very easy. We can built custom element using vc_before_init action. Add below code in theme’s function.php file.

Now we should create shortcode for base wc_my_custom_element. So we will create shortcode for wc_my_custom_element. It will look like below.

Was this article helpful?
YesNo

Leave a comment

Your email address will not be published.