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