hey guys,
I know that I can make the header transparent within my page settings but is there a way to set the transparent header as a standard in the enfold theme options or somewhere else?
Hey mmetzger1987,
Thank you for the inquiry.
There is no option for this by default, but you can use the avf_builder_elements filter to assign a default value to the “Header visibility and transparency” settings.
add_filter('avf_builder_elements', function($elements) {
foreach ($elements as $key => $el) {
if ($el['id'] == 'header_transparency') {
$elements[$key]['std'] = 'header_transparent';
}
}
return $elements;
}, 10, 1);
The code above should go to the functions.php file. Please note that only new pages will be affected by this modification.
Best regards,
Ismael