Forums › Forums › Search & Filter Pro › Integrating elementor pro with Search and filter Pro
- This topic has 35 replies, 2 voices, and was last updated 6 years, 2 months ago by Trevor.
-
Trevor(Private) September 7, 2018 at 10:24 am #187624
If I edit that page (which you currently have open, so I can’t right now), where did you put the code? I ask because in the code I put something that reports in the console that it had run, and that does not appear there in the console after a search.
Trevor(Private) September 7, 2018 at 11:48 am #187641OK. I added a plugin called Simple Custom CSS and JS
I made the CSS to this:
body.sfajax .elementor-336 .elementor-element.elementor-element-e34e354 .elementor-posts-container .elementor-post__thumbnail { padding-bottom: 0 !important; }
And then I added some JS to add the sfajax class to the body once a search had been started:
(function ( $ ) { "use strict"; $(document).on("sf:ajaxstart", ".searchandfilter", function(){ jQuery("body").addClass("sfajax"); }); }(jQuery));
Trevor(Private) September 7, 2018 at 7:20 pm #187746If you look at the css I used, it has two numbers in it the Elementor places on its elements to identify them. They will change from page to page. You will need to examine the page code in the browser inspector to see what and where they are on the page that works, and then work out what they changed to on the page that does not.
-
AuthorPosts