This topic has 11 replies, 3 voices, and was last updated 1 months, 1 weeks ago ago by Andrew Mitchell
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.
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
1- I placed this code, but it didn’t work. Could you possibly put it yourself?
Dear @MAHDAR,
We hope this message finds you well.
Could you kindly provide us with a video showcasing the current results you have? Upon our review, it appears that the search functionality is now working correctly. After performing a search, the content remains visible while scrolling and does not disappear.
If the current outcome does not meet your expectations, we would appreciate it if you could provide us with more detailed feedback.
Thank you for your cooperation.
Best regards,
Jack Richardson
8Theme Team
Hello, I hope you’re doing well.
I’ve uploaded the video for review. Please take a look.
Dear @MAHDAR,
We hope this message finds you well.
We would like to inform you that we have made some improvements to the code we previously provided. This is the best solution we can currently suggest. Please, check on your web-site. Should you require further assistance with modifying the search code, please feel free to submit a request through the following link: https://www.8theme.com/account/#etheme_customization_panel.
Thank you for your understanding.
Best regards,
Jack Richardson
The 8Theme Team
The code works well in Elementor’s edit mode, but after publishing it, it doesn’t work properly on the main page. Could you check why it’s not changing with the primary color changes?
Dear @MAHDAR,
I hope this message finds you well.
Could you kindly check the functionality now? But we should ask to to clear all the caches on your web-site first. Because it seems you have WP Rocket plugin & CDN currently active.
As you know, not all great ideas come to us immediately, but with time, we often find better solutions. With that in mind, we have made some improvements to the JavaScript code related to the search functionality. Now, the search results will no longer be hidden when the search element is used within an Elementor popup.
Below we attach a file that should be uploaded on your web-site because were unable to make such case, as we didn’t have the correct FTP access provided.
Additionally, we have removed the previously added CSS.
Thank you for your attention, and please let us know if everything works as expected.
Best regards,
Jack Richardson
8Theme Team
Hello, I really appreciate your help, but unfortunately, it didn’t work even after I provided the code. I also provided FTP access so you can take a look as well.
I cleared the cache, but it didn’t have any effect.
Dear @MAHDAR,
We hope this message finds you well.
Upon reviewing the file on your server, we noticed a specific line of code that was added in new version of such file does present in the file, as shown here: https://prnt.sc/wjMyTDXeaqse. However, when inspecting the code of the file with the same name that is loaded on your website, we found that this line of code is missing: https://prnt.sc/DisPt93eH47T.
This suggests that either the uploaded file is not located in the same directory as your website, or there may be an uncleared CDN cache. Please note that we do not have the ability to clear your caches, so we kindly ask that you handle this on your end.
Thank you for your attention to this matter.
Best regards,
Jack Richardson
8Theme Team
Dear MAHDAR,
We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!
Click here to spread the love: https://themeforest.net/downloads
Thank you for being an integral part of our journey!
Best Regards,
The 8Theme Team
The issue related to '‘The search element’' has been successfully resolved, and the topic is now closed for further responses