Hello,
i’ve to make some individual changes in the file “/enfold/config-templatebuilder/avia-shortcodes/postslider.php”
How can i make changes in this file, so that i have no problems when i update the theme?
Hey danielrad78,
You want to duplicate the file structure in the child theme. So child theme>config-templatebuilder>avia-shortcodes/postslider.php
Best regards,
Jordan Shannon
No, this doesn’t work. Every Change i make in the “child-file” doese not Effekt the Website. So, if the “child-file” does not exists. I checked the Directory-names and the file-Name. Is the same…
Hi,
What updates did you make in the post-slider file?
Best regards,
Jordan Shannon
I make some additional Output with Advanced-Custom-Fields…
Hey!
You can add the following code to functions
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
let us know if you need anything else
Best regards,
Basilis
Sorry, it does not work…
Why “/shortcodes/” ??? Is this correct? Not “config-templatebuilder>avia-shortcodes/” ???
This work:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/config-templatebuilder/avia-shortcodes/');
return $paths;
}
Hey!
Yes, /shortcodes/ works, which means your folder can just be shortcodes and not all the rest.
Happy you got it through altoiughj.
Feel free to let us know if you need anything else
Best regards,
Basilis