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

    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

    #1374984

    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

    #1375029

    yes it works and i am very happy with it

    Thanks

    #1375032

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Child theme portfolio adjustments’ is closed to new replies.