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

    #618972

    Hi ibolee!

    Thank you for using Enfold.

    Add this in the functions.php file:

    add_action( 'after_setup_theme', 'enfold_customization_product_switch' );
    function enfold_customization_product_switch(){
    	add_filter('avf_builder_elements', 'avf_builder_elements_mod');
    }
    
    function avf_builder_elements_mod($elements)
    {
        $screen = get_current_screen();
        if( 'portfolio' == $screen->post_type )  {
            $counter = 0;
    
            foreach($elements as $element)
            {
            	if($element['id'] == 'layout')  {
                    $elements[$counter]['std'] = 'fullsize';
                }
    
                $counter++;
            }
        }
    
    	return $elements;
    }

    Best regards,
    Ismael

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