Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #163712

    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?

    #163772

    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.

    • This reply was modified 11 years, 3 months ago by awsystems.
    #163800

    Hello!

    Glad you figured it out. Let us know if you have any other questions

    Regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Move Search Icon to Secondary Menu?’ is closed to new replies.