Visual Composer new element in child theme

Asked on September 5, 2017 in How To.

I made my child theme, i want to build my visual composer addon, so i follow:

Simple, but problem is when i add in function..php
// Before VC Init
add_action( ‘vc_before_init’, ‘vc_before_init_actions’ );

function vc_before_init_actions() {

//.. Code from other Tutorials ..//

// Require new custom Element
require_once( get_template_directory().’/vc-elements/my-first-custom-element.php’ );


I have error

( ! ) Warning: require_once(E:\wamp\www\site008/wp-content/themes/layerswp/vc-elements/icon-box.php): failed to open stream: No such file or directory in E:\wamp\www\site008\wp-content\themes\site008-child\functions.php on line 57

I have all in site008-child.. how can i connect to my child not to layerwp theme?

Thank you

yupii1986 Layers User
  • Possible Answers to Your Question:

  • 0 Answer(s)