Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1439670

    Hi team, thanks in advance.

    I copied portfolio.php from enfold/config-templatebuilder/avia-shortcodes/portfolio to enfold-child/config-templatebuilder/avia-shortcodes/portfolio and I made changes to show portfolio list but not by CATEGORIES, just by portfolio_id, but don’t work correctly.

    Is there any solution to show a portfolio or post by ID in shortcode?

    Thanks

    #1439703

    Hey Manel,

    Thank you for the inquiry.

    You have to register a new shortcode path to the child theme folder first. Please add the following code to the functions.php file:

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

    Create a new folder called “shortcodes”, then place the template files that you’d like to override in it. For more info, please refer to the documentation below:”

    // // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.