The search element - by MAHDAR - on WordPress WooCommerce support

This topic has 3 replies, 2 voices, and was last updated 38 minutes ago ago by MAHDAR

  • Avatar: mahdar
    MAHDAR
    Participant
    October 15, 2024 at 17:09

    Hello, I hope you’re doing well.

    1- I have designed a pop-up in Elementor and added the search element, but this element disappears when I try to select or scroll. Please watch the video.

    2- And the second issue is that

    In my search, I want it to search only in the product titles, not in the descriptions.

    For example, if a customer searches for “test” and the word “test” is used in the product description, it appears in the search results, but I want the search to be limited to product titles only.

    When I hold down the Control key to open the link in a new tab, the clicked product title replaces the search input.

    Content is visible for topic creator and
    support staff only.
    2 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 16, 2024 at 08:24

    Dear @MAHDAR,

    I hope this message finds you well.

    1. You can apply the following custom CSS snippet to the search element in your popup to achieve the desired functionality:

    selector .autocomplete-suggestions:has(.autocomplete-suggestions:not(:empty)) {
        display: block !important;
    }
    selector .etheme-search-ajax-results:has(.autocomplete-suggestions:not(:empty)) {
        display: block !important;
    }

    Our theme currently supports search functionality by title, description, SKU, posts, and pages. However, it does not offer the option to search by title only. For further details, you may refer to the following discussions:

    1. https://www.8theme.com/topic/ajax-search-product-adjust-to-search-product-but-not-descriptions/#post-319636
    2. https://www.8theme.com/topic/search-result-displaying-unrelated-products/#post-347580

    If you would like to request the addition of a “title-only” search feature, we encourage you to submit your suggestion on our https://www.8theme.com/taskboard/. If the request garners sufficient support from other users, our development team will consider implementing it in a future update.

    Best regards,
    Jack Richardson
    The 8theme Team

    Avatar: mahdar
    MAHDAR
    Participant
    October 16, 2024 at 20:18

    1- I placed this code, but it didn’t work. Could you possibly put it yourself?

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.