• Resolved sietssoo

    (@sietssoo)


    Heey boys and girls,

    I removed the product search bar from the storefront theme since I didn’t only want to search on Products but also on Posts, Custom posts, pages, etc. by the following code

    add_action( 'init', 'remove_sf_actions' );
    function remove_sf_actions() {
    	remove_action( 'storefront_header', 'storefront_product_search', 40 );
    }

    My question: Since I applied the following code, the place where the Search bar was located is now empty but my menu what was on the left of the search bar didn’t shift to the right on my site (where the search was located before). How can I align my second menu on the place where the search bar was before

Viewing 1 replies (of 1 total)
  • Hi @sietssoo – based on your description, I’m going to make the assumption that this menu is set as the ‘Secondary Menu’, which falls right of the site logo and right of the search bar.

    If that’s correct, you should be able to change both the float and margins to move that over:

    nav.secondary-navigation {
    	float: right!important;
    	margin-right: 0!important;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Blank space after removing search bar’ is closed to new replies.