Support » Theme: Sugar and Spice » Adding Search Bar in Header and Mobile

  • Resolved eben.fabricius


    Hi There

    Is there a way to add a search bar to the header.

    Also the display of the site on my iPhone after using woo commerce is not responsive enough. Is there a way to sort this out by only displaying products in one line going down.


Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author alex27



    It’s not possible to add search bar to header. As for Woocommerce, Sugar & Spice was not designed to work with this plugin, so issues are unvoidable I’m afraid. I can’t really say more without seeing your website.

    Adding the search function to the header requires editing a core php file. You will need to create a child-theme if you wish to do this.

    @alex27 <RANT> Telling someone it’s not possible on a GPL licensed product is not true in this case. The functionality they asked for is a simple 1 line of code. If you, as the author, decide not to support that feature, it’s your choice. As you can see by the screen shot I was able to get a functioning search with 1 line of code.</RANT>

    Thanks four the feedback Batharoy. Can you help me a bit please and maybe send me the line of code. I would like to align it to the right please? [email address moderated – these forums do not provide support via email]

    Are there any shopping plugins i can use with this theme?


    This theme does not seem to work using Internet Explorer on Windows?

    Is there a workaround?


    For the search:
    Do want it in the top-right or bottom-right? That will determine placement of the code in the file. Either way copy your header.php file from your parent folder into your child folder.

    woocommerce does not work out of the box but following this video I did get it to work.

    I also had no problems with IE 11 on Windows 7.

    Theme Author alex27


    Since I created this theme, I actually do realize that everything is possible given enough technical knowledge, but rarely it’s as easy as inserting one line of code. In this case inserting search from is one thing, styling and making sure everything looks nice (also on mobile devices) and does not interfere with other elements on page is another. So it that was my call, of course you’re welcome to your own.

    Sugar & Spice was tested to work on IE 10 & 11 on Windows 7. I can’t speak for Woocommerce though.
    @eben.fabricius – please do not provide your email address, it’s against forum rules.

    My apologies Alex

    @batharoy i have created child theme.

    Next step please.



    here is the link:

    It does not work on IE and i bought the pro version

    Help please

    Theme Author alex27


    That changes things a bit – this forum is to provide support to free themes only. Please contact me directly and we’ll continue.

    Just sent you a PM

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding Search Bar in Header and Mobile’ is closed to new replies.