Viewing 13 posts - 1 through 13 (of 13 total)
  • #163542
    fixers
    Member
    Post count: 253

    Hi

    Is it possible to use a different menu from main header for the sticky/ mini header? I am not using ‘top bar’ menu location is it possible to pull this menu into the mini header?

    I have seen in the support forums you have been able to give users code to add a logo to the sticky header, hoping its possible to filter and load the alternative menu.. 🙂

    #163595
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Try adding this to your child theme’s functions.php file:

    if (!function_exists('sf_mini_header')) {
    	function sf_mini_header() {
    
    		$mini_header_output = '';
    
    		$mini_header_output .= '<div id="mini-header">';
    		$mini_header_output .= sf_main_menu('top_bar_menu', 'full');
    		$mini_header_output .= '</div>';
    
    		return $mini_header_output;
    	}
    	}

    – Kyle

    #163597
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_mini_header() {
    		
    		$mini_header_output = '';
    		
    		$mini_header_output .= '<div id="mini-header">';
    		$mini_header_output .= sf_aux_links('top-menu');//sf_main_menu('mini-navigation', 'full');
    		$mini_header_output .= '</div>';
    	
    		return $mini_header_output;
    	}
    

    Thanks
    Mohammad

    #163634
    fixers
    Member
    Post count: 253

    Brilliant, thank you Mohammad.

    #163636
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

    – Kyle

    #163645
    fixers
    Member
    Post count: 253

    Oh dear, it appears I have spoken too soon – I have added a new menu and set this in menu locations as top bar.

    For some reason – only ‘my account’ and ‘sign out’ are being pulled through though?

    Not my new menu…

    #163654
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Where do you want to display top menu? I dont see any sticky header and Mini header.
    Thanks
    Mohammad

    #163657
    fixers
    Member
    Post count: 253
    This reply has been marked as private.
    #163722
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now.
    Thanks
    Mohammad

    #163747
    fixers
    Member
    Post count: 253

    Hi Mohammad

    Hmm no unfortunately not -were back to where we started with the main header menu appearing in the sticky menu?

    The goal is to have another menu appear in this sticky menu – specifically my menu which is named ‘destination’?

    #163847
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check.
    Thanks
    Mohammad

    #163893
    fixers
    Member
    Post count: 253

    Sorted, thanks again Mohammad

    #163894
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks Mohammad.
    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register