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

    Hello,

    how can I set transparent header for all CPT items by default? My CPT posts are automatically generated, I cant change the layout for every post. Thank you

    #725444

    Hey Otakar,

    Please try adding following code to Functions.php file in Appearance > Editor

    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)
    {
    	$counter = 0;
        foreach($elements as $element)
        {
    		if($element['id'] == 'layout')  {
                $elements[$counter]['std'] = 'fullsize';
    }
            $counter++;
        }
    	return $elements;
    }

    Best regards,
    Yigit

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