Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #423742

    Hi,

    I am wanting to modify portfolio.php in my child theme. I have added this code to my child theme’s functions.php file and created a folder called shortcodes in my child theme and copied portfolio.php to this folder. However, changes I make to that file don’t display. I can get the changes to display if I make them in the parent theme’s portfolio.php file but not in my child theme. Please let me know when/if you support child theme changes to these files as you used to.

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

    Thanks!

    Angela

    #424274

    Hi Angela!

    Do you mind creating a temporary FTP access and admin login and posting them here privately so we can look into it?

    Best regards,
    Yigit

    #424280

    Hi Yigit,

    I updated the parent theme to the latest version, and now the function is working!!!! Yay!

    Thanks!

    Angela

    #424302

    Hi!

    Glad you figured it out!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Loading Shortcode Templates from Child Theme’ is closed to new replies.