• Resolved Daniel

    (@marketinggreenpaint)


    Hello,

    I am trying to change the search results page. https://imgur.com/nT9qslk
    My problem is the images are huge, should be smaller, just like woocommerce products at the shop and should show only products not pages. How can I solve this?

    Another question I have is, is it possible to make the search action work by pressing the Magnifying glass as well as pressing enter? Currently only works with pressing enter. https://imgur.com/IJDxZrc

    Also, is it possible to remove the “Older Posts” link at the bottom? https://imgur.com/dpYnQcJ

    Thank you in advance,
    Best Regards,
    Daniel

    • This topic was modified 5 years, 8 months ago by Daniel. Reason: forget links

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,
    The general search on the header shows all the type of results. So, in order to show only products, you can create a child theme for Zakra and override template to change the default behavior of the search. Similarly, due to the HTML structure, the search icon cannot be used as a button so, you can change the HTML structure and add CSS for it to achieve the same as instructed here: https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/

    Finally, please add the following CSS inside Customize > Additional CSS to remove the pagination:

    .posts-navigation {
        display: none;
    }

    Thanks.

    Thread Starter Daniel

    (@marketinggreenpaint)

    @themegrillteam Thank you for your help!

    What would be the page I would need to change for the search results?
    I already have a child theme in place.

    The css solution did exactly what I needed, thank you.

    @marketinggreenpaint,
    It’s template-parts/content-search.php file from the theme. Also, you might want to override zakra_search_icon_menu_item function from inc/helpers.php and replace get_search_form function with WooCommcerce search function.

    I hope this helps you to figure it out. ??

    Thread Starter Daniel

    (@marketinggreenpaint)

    I am going to be honest with you, I can find those files, will try to edit them as soon as I do. But I am pretty sure my level is not that high in coding to be able to come up with a solution hehe.

    Thank you so much for your help @themegrillteam

    No worries! You can try it yourself and let me know if you need help in particular. ??

    Thread Starter Daniel

    (@marketinggreenpaint)

    @themegrillteam
    It is definitively not for me. I wouldn’t know how to apply such changes.
    I suspect it is a lot of work for you too? Or else you would have probably told me already.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search bar and Search Results’ is closed to new replies.