Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #650731

    Can I define the Header visibility and transparency Option “Transparent Header” as standard Option for new pages?

    Thanks,
    Martin

    • This topic was modified 8 years, 5 months ago by danielrad78.
    #651613

    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

    #681194

    A thousand thanks!

    #681230

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Header visibilty Option "Transparent Header" as standard for new pages?’ is closed to new replies.