Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi!
Make sure nothing is enabled on the Search Sources -> Taxonomy terms search panel. That will do the trick.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterYou cannot access this content.
July 18, 2023 at 2:26 pm in reply to: Ajax Search with Elementor Pro results displaying twice #44722Ernest Marcinko
KeymasterYou cannot access this content.
July 18, 2023 at 2:17 pm in reply to: Ajax Search with Elementor Pro results displaying twice #44720Ernest Marcinko
KeymasterSure! Can you try maybe this variation:
add_action('wp_footer', 'asp_custom_footer_script', 99999); function asp_custom_footer_script() { ?> <script> window.addEventListener("load", (event) => { (function($){ $('.asp_m').on('asp_elementor_results', function(){ let id = $(this).data('id'); let seen = []; $('.asp_es_' + id + ' .elementor-post').each(function(){ if ( seen.includes(this.className) ) { $(this).remove(); } else { seen.push(this.className); } }); }); }(WPD.dom)); }); </script> <?php }Ernest Marcinko
KeymasterYou cannot access this content.
July 18, 2023 at 2:01 pm in reply to: Ajax Search with Elementor Pro results displaying twice #44717Ernest Marcinko
KeymasterHi Jon,
Thank you very much for the details!
This same exact issue was once reported, I have found the topic, it’s here. Turns out this is an issue with ECS and WordPress 6.x versions. Unfortunately they still not addressed the problem.
Please try the snippet from this reply. While this does not resolve the original problem with ECS, but should mask the duplicates if all goes well.
Ernest Marcinko
KeymasterYou cannot access this content.
Ernest Marcinko
KeymasterHi,
Thank you very much for your kind words, it means a lot!
Okay, for these customizations I would suggest the following:
– The result groups can be altered via the asp_result_groups hook. This lets you add/change any current result groups when the grouping is enabled.
– For the the associated product tags, it is probably sufficient to enable the search in taxonomy terms. These terms are automatically placed in the “other” group. You can of course move/change that via the filter suggested above.
– To customize the layout I always suggest sticking to custom CSS only whenever it is possible. For changing parts of the layout of each result you can check the advanced title and content features.
– For even more in-depth changes the results templating system is also available.Ernest Marcinko
KeymasterHi Marian,
Sure, you can proceed via this link.
Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts