Visual Composer override

Hi
How can I get these files to be overridable in my child theme?

/functions/meta-functions.php
/functions/plugins/visual-composer.php

I need to do some customization in Visual Composer but after include_once these files in function.php I get:

Cannot redeclare mfn_get_categories() in /home/mediastu/domains/nowa/wp-content/themes/betheme/functions/meta-functions.php on line 14
Cannot redeclare mfn_vc_image() in /home/mediastu/domains/nowa/wp-content/themes/betheme/functions/plugins/visual-composer.php on line 14

Should I add some condition check like that in original files, or elsewhere?
if ( ! function_exists( 'mfn_vc_image' ) ) {
function mfn_vc_image()() {
// Do something.
}
}
and
if ( ! function_exists( 'mfn_get_categories' ) ) {
function mfn_vc_image()() {
// Do something.
}
}
and for other functions in these two files also.. and make this work for the future.
Could you add this to the template update, or write me how to customize myself?

Mariusz

Comments

Sign In or Register to comment.