• Resolved teleanu

    (@teleanu)


    Can you help me with something to make that search to show products from the woocommerce shop?!

    If I add in main-navigation.php (in my child theme)
    <?php get_product_search_form(); ?> insted of <?php get_search_form(); ?> it works, but it brokes the design of the magnifying glass.

    View post on imgur.com


    It gives the correct answer (showing products) and even the layout of products, but look what it does there… Like… the magnifying glass doesnt have style anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @teleanu

    At first, thank you for choosing our theme and service.

    I will redirect this topic to the developer’s board and they will contact you.

    Kind Regards

    Hi they I have Also the same issue the function
    Deprecated: Function create_function() is deprecated in ———-functions.php on line 430

    line430: add_filter( ‘get_search_form’, create_function( ‘$a’, “return null;” ) );

    Theme Author WP Royal

    (@wproyal)

    Hi Guys,

    @teleanu You are trying to add custom functionality to the theme and unfortunately we can’t help you with that. Custom development is not covered by theme support. You may hire a developer for that job.

    @mrksays There is no such function “create_function()” used in the Ashe theme. Are you sure that you have updated Ashe theme to the latest version?

    Kind Regards, Duke

    Thread Starter teleanu

    (@teleanu)

    Thank you WP Royal for the answer, but I made it myself.
    Was needed to add only this

    name="post_type" value="product"

    If this was a big deal for the supporting team…
    Have a good one!

    Theme Author WP Royal

    (@wproyal)

    Hi @teleanu,

    But we couldn’t know that in advance. In order to find out what should be added there, we should set up a new development environment and then search for the solution specifically for your case which requires solid working time…

    I hope you understand what I mean, thanks!

    Kind Regards

    Thank you @all

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘make search to show products, not posts/page as result’ is closed to new replies.