Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    #771926

    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

    #771970

    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…

    #771979

    Hi,

    What updates did you make in the post-slider file?

    Best regards,
    Jordan Shannon

    #771981

    I make some additional Output with Advanced-Custom-Fields…

    #771990

    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

    #771994

    Sorry, it does not work…

    #771997

    Why “/shortcodes/” ??? Is this correct? Not “config-templatebuilder>avia-shortcodes/” ???

    #771998

    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;
      }
    #772015

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Customizing Child Theme’ is closed to new replies.