Hello,
i´m following a Tutorial how to create a new element in Visual Composer.
I have to enter
// Before VC Init
add_action( 'vc_before_init', 'vc_before_init_actions' );
function vc_before_init_actions() {
// Link your VC elements's folder
if( function_exists('vc_set_shortcodes_templates_dir') ){
require_once( get_template_directory().'/vc-elements/service-box.php' );
}
}
}
to functions.php - did it in Child-Theme functions.php. I create vc-elements directory in Childs-root and added service-box.php
But it did not work out.
Admin returns white page.
Can you give me a hint how to add custom vc-code to child-theme function.php?
Thank you