-
AuthorPosts
-
April 4, 2017 at 7:06 pm #771922
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?
April 4, 2017 at 7:16 pm #771926Hey danielrad78,
You want to duplicate the file structure in the child theme. So child theme>config-templatebuilder>avia-shortcodes/postslider.php
Best regards,
Jordan ShannonApril 4, 2017 at 8:59 pm #771970No, 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…
April 4, 2017 at 9:05 pm #771979Hi,
What updates did you make in the post-slider file?
Best regards,
Jordan ShannonApril 4, 2017 at 9:07 pm #771981I make some additional Output with Advanced-Custom-Fields…
April 4, 2017 at 9:14 pm #771990Hey!
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,
BasilisApril 4, 2017 at 9:21 pm #771994Sorry, it does not work…
April 4, 2017 at 9:24 pm #771997Why “/shortcodes/” ??? Is this correct? Not “config-templatebuilder>avia-shortcodes/” ???
April 4, 2017 at 9:26 pm #771998This 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; }April 4, 2017 at 9:47 pm #772015Hey!
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 -
AuthorPosts
- The topic ‘Customizing Child Theme’ is closed to new replies.
