We are trying override the template for the element vc_custom_heading, if we copy the template file to child-theme/vc_templates, it doesn't override the element output.
The link below explains how to override the Salient elementstemplates, but it only overrides templates that are in the salient-core plugin (/plugins/salient-core/includes/vc_templates).
How can we override the WPBakery elements templates which are located in the js_composer_salient plugin (/plugins/js_composer_salient/include/templates/shortcodes), which is where the vc_custom_heading is located?
Hi,
We are trying override the template for the element vc_custom_heading, if we copy the template file to child-theme/vc_templates, it doesn't override the element output.
The link below explains how to override the Salient elements templates, but it only overrides templates that are in the salient-core plugin (/plugins/salient-core/includes/vc_templates).
https://themenectar.com/docs/salient/overriding-salient-wpbakery-element-template-files-through-a-child-theme/
How can we override the WPBakery elements templates which are located in the js_composer_salient plugin (/plugins/js_composer_salient/include/templates/shortcodes), which is where the vc_custom_heading is located?
We also tried using the vc_set_shortcodes_templates_dir() from the original WPBakery Docs, https://kb.wpbakery.com/docs/inner-api/vc_set_shortcodes_templates_dir/, but that is also not picking up the template from the child theme.
Hey MILK_is_Good ,
Escalating this to the developer for further response.
Thanks.
ThemeNectar Support Team
Hey MILK_is_Good,
You can use the following snippet from your child functions.php to handle that override:
Kind regards
Works perfectly, thank you.