• Resolved Nicu Danciu

    (@nicu-danciu)


    Hi,
    I know it’s a simple issue, I also believe that you’ve already answer to this question”:
    “Search products” does not function on my website https://www.papercupslates.co.uk.
    When I search a product, it returns me either the entire Shop page or “No products were found matching your selection.”
    I believe I’ve setup something wrong, but…what?
    I also installed Relenanssi search plugin, but the results are the same.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Sorry, there was an extra curly brace in the code I gave you.

    Try this;

    function storefront_product_search() { ?>
    		<div class="site-search">
    			<?php the_widget( 'WP_Widget_Search', 'title=' ); ?>
    		</div>
    	<?php
    }

    Cheers

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Thank you.
    I managed to solve the problem this morning with a little help from my hoster. First restored the site through a backup, than noticed the extra curly brace, removed it and the search product started to work correctly.
    Thank you for your answer, anyway.
    One more question and than I’ll mark this thread as solved: you recommend not to make any modification in functions.php. Why did I have to make that modyfication inside that file? Isn’t there any safest way?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘"Serach products" does not function on my website’ is closed to new replies.