Really enjoying the ease of working with this theme – one thing that i would like to do that I don’t believe is a setting in the UI is to move the Search Icon from the Main Navigation to the Secondary Navigation.
http://screencast.com/t/iti8PxMkXd
Is there a way to do that?
Found the solution to this – in the header.php file look for:
//display the small submenu
echo "<div class='sub_menu'>";
$args = array('theme_location'=>'avia2', 'fallback_cb' => '', 'container'=>'', 'echo' =>false);
This is the Secondary Navigation menu – note the name value in the location array – ‘avia2’
Open the functions-enfold.php file in the theme directory and look for:
/* AJAX SEARCH */
if(!function_exists('avia_append_search_nav'))
{
//first append search item to main menu
add_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 );
function avia_append_search_nav ( $items, $args )
{
if ($args->theme_location == 'avia')
Change the location value from ‘avia’ to ‘avia2’ – that’s all there is to it.