Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Linking Breaks when using Filters
- This topic has 6 replies, 2 voices, and was last updated 5 years, 3 months ago by
mckots87.
-
AuthorPosts
-
February 5, 2021 at 6:24 pm #31479
mckots87
ParticipantHi again,
I’ve having an issue. The linking of the entire loop/card to our post pages breaks and does not work, once the filtering has been used. Before a user initiates any filters, the links work on the entire card.
I am using Elementor Custom Skins premium version which I purchased for this specific feature which that allows you to link the entire card. It seems that once you start using filters the entire search reloads and there is no link there.
You can test this here: https://staging1brand.wpengine.com/attorney-listings
Any help here is greatly appreciated, we need to present this to the client on Monday. Thank you soooo much again for all your help!
Mike
February 6, 2021 at 2:58 pm #31483Ernest Marcinko
KeymasterHi Mike,
This is one of the reasons why we can only guarantee support for the native Elementor widgets. I assume this feature is implemented via javascript, but whenever the nodes are changed, the event handlers are not re-attached (that is a normal behavior in javascript). The only way to resolve this is by re-attaching the event handlers whenever the list is refreshed. For that however I need to know if there is a javascript API with that plugin,or a specific method should be called to re-initalize the elements.
These scenrarios are very problematic for both parties, because our plugin manipulates the elements on the page – which is fine when using only Elementor, as the proper API is used. But in this case the plugin author has no way of knowing and preparing for this, and neither do us.February 6, 2021 at 3:10 pm #31484mckots87
ParticipantHi Ernest. I understand overall, but I’m not technical enough to answer your method/API questions. I also had filled out a ticket with Dudaster, the developer that makes this plugin, but its a GitHub forum and nobody has responded so far.
I could provide you with a login to our website, and or links to the plugin’s support or anything you would need to help me figure this out and I do not mind paying you a fee for this, whether it is hourly or whatnot.
Elementor has no way to customize the post type loop and unfortunately we had to use a 3rd party plugin like Ele Custom Skin for this. It reallly should be an Elementor feature out of the box and hoping they add it soon.
Please let me know what you need, any and all help truly appreciated. Thank you again!
February 6, 2021 at 3:23 pm #31485Ernest Marcinko
KeymasterActually, I may have found a solution totally by accident. I checked the event handlers on the elements and found just the correct function. I constructed a custom code for you based on our plugin API. Props to them as well for a very simple function.
Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!
add_action('wp_footer', 'asp_api_sample_code'); function asp_api_sample_code() { ?> <script> jQuery(function($){ $(".asp_main_container").on("asp_search_end", function(){ if ( typeof EleCustomSkinItemLink != 'undefined' ) { EleCustomSkinItemLink(); } }); }); </script> <?php }Clear all layers of cache (if you have any), and then this should do the trick.
February 6, 2021 at 3:55 pm #31486mckots87
ParticipantThat worked! You rock! Thank you so much for your awesome support!! I truly appreciate it, and your plugin is awesome. 🙂
February 6, 2021 at 4:02 pm #31487Ernest Marcinko
KeymasterYou cannot access this content.
February 6, 2021 at 4:06 pm #31488mckots87
ParticipantDone.
-
AuthorPosts
- The topic ‘Linking Breaks when using Filters’ is closed to new replies.