Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #26622

    Hi everyone,

    I’m just a bit lost in one things:

    I will have a Header Fixed with social on the home page and a Small non fixes header type in the other page of the site.

    I just don’t understand and find how to do that like is available in the demo page.


    Thanks for any help!




    As far as I know you can’t set different header for different pages by default. Kriesi’s demo page just demonstrates all header but there’s no option to switch the header type from page to page.

    You can try to add a meta field to posts/pages to switch the header. Open up functions.php and insert following code at the bottom:

    add_filter('avf_builder_boxes', 'register_meta_boxes', 10, 1);
    function register_meta_boxes($boxes)
    $boxes[] = array( 'title' =>__('Header Type','avia_framework' ), 'id'=>'header_type', 'page'=>array('page' , 'post'), 'context'=>'side', 'priority'=>'low');
    return $boxes;

    add_filter('avf_builder_elements', 'register_meta_elements', 10, 1);
    function register_meta_elements($avf_builder_elements)
    $avf_builder_elements[] = array(
    "slug" => "header_type",
    "name" => "Header Type",
    "desc" => "Which header type do you want to use?",
    "id" => "header_setting",
    "type" => "select",
    "std" => "",
    "class" => "avia-style",
    "subtype" => array( 'Default' => '',
    'Small fixed Header' =>'fixed_header',
    'Small non-fixed Header'=>'nonfixed_header',
    'Fixed Header with Social Icons and additional Navigation'=>'fixed_header social_header',
    'Non-fixed Header with Social Icons and additional Navigation'=>'nonfixed_header social_header',
    'Header with Social Icons and bottom Navigation'=>'nonfixed_header social_header bottom_nav_header',

    return $avf_builder_elements;

    Best regards,



    Hi Peter, many thanks for reply!

    Heee it looks that I have an sintax error in the first part but I can’t identify where…

    add_filter(‘avf_builder_boxes’, ‘register_meta_boxes’, 10, 1);

    function register_meta_boxes($boxes)


    $boxes[] = array( ‘title’ =>__(‘Header Type’,’avia_framework’ ), ‘id’=>’header_type’, ‘page’=>array(‘page’ , ‘post’), ‘context’=>’side’, ‘priority’=>’low’),

    return $boxes;





    Should work now – I corrected the code.

    Best regards,



    Ohhh yess! :)

    Thank you so much.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Different header type for different page, how?’ is closed to new replies.