Tagged: enfold
Can I define the Header visibility and transparency Option “Transparent Header” as standard Option for new pages?
Thanks,
Martin
Hey danielrad78,
Please add following code to Functions.php file of your child theme 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'] == 'header_transparency') {
$elements[$counter]['std'] = 'header_transparent ';
}
$counter++;
}
return $elements;
}
and new pages would have transparent header by default
Best regards,
Yigit
A thousand thanks!
Hi,
Glad we could help!
We really appreciate it if you rate our theme on themeforest .
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Vinay