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

    Hi – I have a standard enfold layout with the menu on the left side. But for one of my pages I don’t want the menu to appear. How can I choose a different layout for a specific page ? Thanks

    #1222513

    Hey lcrivell,

    Unfortunately there’s no option to change a different layout on specific pages.
    However, it depends on the modification, for example you mentioned that you don’t want the menu to appear, then we can provide you with some CSS codes that help remove that but we’ll need the link on the specific page mentioned.

    Best regards,
    Nikko

    #1222525

    well – with filter : avf_header_setting_filter it may be possible.
    what kind of header setting you like to have. Maybe show an example page on demo pages : https://kriesi.at/themes/enfold-overview/

    #1222775

    Thanks to both. I would actually like to build a full page with video background and logon screen.
    Something like the Enfold Restaurant one: https://kriesi.at/themes/enfold-restaurant-one-page.

    And once logged-on, arriving to a different template that I am current using (sidebar on the left).

    Thanks !

    #1222804

    there are a lot of settings – some you can set on the editing mode of that page like transparency but i let it in the code to show you how.
    this code comes to child-theme functions.php:

    add_filter('avf_header_setting_filter','av_change_header_layout', 10, 1);
    function av_change_header_layout($header){
        if(is_page(123456)){
    		// for example like the choice in enfold options: logo: left menu: right
    		$header['header_position'] = 'header_top header_stretch';
    		$header['header_class']	.= " av_header_top av_header_stretch";
    		
    		$header['header_layout'] 	= 'logo_left menu_right';
    		$header['header_class']	.= " av_logo_left av_menu_right";
    
    		// for example you like to have header transparent and glassy 
    		$header['header_transparency']	 = 'header_transparency header_glassy';
    		$header['header_class']			.= " av_header_transparency av_header_glassy";
    
    		// header sticky (by the way the space on adding class is important)
    		$header['header_sticky'] = 'header_sticky';
    		$header['header_class'] .= " av_header_sticky";
        }
        return $header; 
    }

    so let all what you can not directly set in the page on top – the rest you can erase
    you see that there is a space when adding a class by .= let it in the code.

    #1222917

    Hi,

    Thanks for helping out @guenni007 :-)

    Best regards,
    Rikard

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