Hello
If I made some adjustments to portfolio.php and upload it in the child directory is the right way this
config-templatebuilder>avia-shortcodes>portfolio>portfolio.php
I don’t get it to work
Hey MarcusEls,
To add a modified version of portfolio.php to your child theme you can add this function to your child theme functions.php:
function avia_include_shortcode_template( $paths )
{
if( ! is_array( $paths ) )
{
$paths = array();
}
$template_url = get_stylesheet_directory();
array_unshift( $paths, $template_url . '/shortcodes/' );
return $paths;
}
add_filter( 'avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1 );
then in your child theme directory create a new directory /shortcodes/ then copy the folder with your customized element into it, in your case /portfolio/portfolio.php
Best regards,
Mike
yes it works and i am very happy with it
Thanks
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike