• HI I HAVE LOOKED EVERYWHERE BUT COULD NOT FIND SOLUTION. NEED TO CUSTOMISE HOME PAGE LITTLE BIT.
    IT WOULD BE NICE I CAN GET HELP FOR FOLLOWING ISSUE
    1) PLACE SEARCH BAR ON BODY. JUST UNDER THE PAGE NAME (Your favorite food, delivered with Foodhouse!)
    2) IT WOULD BE GREAT I CAN HAVE BUTTON WITH IT.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, as you are using a child theme, you’ll need to add the following code into the child theme’s functions.php file at the end of that file

    function kb_product_home_search() {
    	if ( is_front_page() ) {
    		the_widget( 'WC_Widget_Product_Search' );
    	}
    }
    add_action( 'woocommerce_archive_description', 'kb_product_home_search' );

    That should get the product search to show up on the homepage template of the site. May need some CSS tweaking however.

    Regarding the button you mentioned, what button would you like to have showing?

    Thread Starter shayed

    (@shayed)

    hi thank you for reply. its great. but looks poor. can i change the look of the search bar. a search button attached to it and a little padding to it. i like to send you a photo but i suppose no option to attach here. i like search bar more like https://www.foodpanda.com.bd/. more like this little padding with one button named search on it. is it possible?

    That domain has US traffic blocked, if you can get a screenshot you can upload it using https://snipboard.io

    I’m guessing you just want an actual ‘Search’ button to the right of the search bar?

    Thread Starter shayed

    (@shayed)

    thank you sir for quick reply. sir i would to have search bar more like this. here is the link https://snipboard.io/hpE7Oq.jpg.

    thank you sir

    You could replicate that but you’d have to modify some code in the theme. You would have to copy /wp-content/plugins/woocommerce/templates/product-searchform.php into /wp-content/themes/[yourchildtheme]/woocommerce/product-searchform.php

    From there, you could modify the product-searchform.php file to add the additional button to the search form. If you aren’t sure how to do that or don’t feel comfortable with working with code, your best bet would be to hire a developer to assist you further with the customization.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘STOREFRONT HOMEPAGE’ is closed to new replies.