Add a seach box to the primary navigation

Home Pootlepress Academy Support Forums Academy Support Forum WordPress menus Add a seach box to the primary navigation

This topic contains 1 reply, has 2 voices, and was last updated by Add a seach box to the primary navigation 1 Jamie Marsland 4 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16107
    Add a seach box to the primary navigation 2
    keith whalen
    Member

    Hi,

    I’m trying to implement trick “20. Add a search box to the primary navigation”, from your “65 tips, tricks and CSS tweaks for Woothemes Canvas” page but its just not working. If I am doing everything right should this still work Canvas 5.8.2

    The website is at http://bombshellbella.co.uk/

    I have tried switching the Header Cart Link and Header Cart totals off but still no joy.

    I have copied the following text into my custom.css file:

    #nav-search .icon-search {
    position: absolute;

    right: 9px;
    }

    #nav-search {
    margin-right: 9px;
    top: 10px;
    padding-top:5px;
    }

    ..and the following into my fucntions.php file:

    /*—————————————————————————-*/
    /* You can add custom functions below */
    /*—————————————————————————-*/

    add_action( ‘woo_nav_inside’, ‘woo_custom_add_searchform’, 10 );

    function woo_custom_add_searchform () {
    echo ‘<div id=”nav-search” class=”nav-search fr”>’ . ”
    “;
    get_template_part( ‘search’, ‘form’ );
    echo ‘</div><!–/#nav-search .nav-search fr–>’ . ”
    “;
    } // End woo_custom_add_searchform()

    But it breaks everything up badly, footer appears before the slide show etc. I have had to switch it off for now but I wanted to check it should still work as I have tried a few times and just can’t seem to get it to work.

    I know there is an enable search primary navigation for canvas now but my customer would prefer the text box for the search term to be permanently in the navigation area.

    Regards,

    Keith.

    #16197
    Add a seach box to the primary navigation 3
    Jamie Marsland
    Keymaster

    Hi Keith,

    We’ll have a think about this one as a possible future enhancement for our Menu Customizer plugin that’s coming out soon :)

    Jamie

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

You must be logged in to reply to this topic.