Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #715541

    It can be possible without edit each post by default ?

    #715558

    Hey unicaweb!

    You mean, to assign the header to have the style, based on the theme settings, correct?

    Best regards,
    Basilis

    #715761

    Yes but only for single post.

    #716672

    Hi,

    Thank you for the update.

    Please add this in the functions.php file.

    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)
    {
        $screen = get_current_screen();
        if( 'post' == $screen->id  )  {
            $counter = 0;
            foreach($elements as $element)
            {
            	if($element['id'] == 'header_transparency')  {
                    $elements[$counter]['std'] = 'header_transparent';
                }
    
                $counter++;
            }
        }
    	return $elements;
    }

    Best regards,
    Ismael

    #716762

    Thanks.

    #716779

    Hey!

    Happy we could solve it.
    Please remember to rate our theme at Themeforest, we would much appreciate it.

    Let us know if we can do anything else for you, by creating a new ticket.
    Thanks a lot

    Cheers!
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Transparent header in all single post’ is closed to new replies.