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

    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?

    #1422867

    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

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