Search function in header area

Hi there,
Is there a way to add a search to the header area in Alizee, as is the common place to have this on websites? I am happy to try adding code if that is the only way.
Thanks

Hello,

Is there a way to add a search to the header area in Alizee, as is the common place to have this on websites?

Yes, it is doable, and here is a possible solution:

Please leave here a note if you need further assistance.

Kind Regards, Roman.
aThemes Support

Thank you Roman,
Will have a go at that - should I use ‘alizee_menu_fallback’ in the wp_nav_menu function for that theme? The example is using Sydney theme.
Thank you

Hello,

should I use ‘alizee_menu_fallback’ in the wp_nav_menu function for that theme?

Try to replace the line 37 in the header.php file:

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

…with this line:

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); get_search_form(); ?>

Kind Regards, Roman.
aThemes Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.