If 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.
OK. 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));
If we did not use that CSS I gave you, this ONLY happens after an Ajax refresh of the results?
If so, some custom javascript could be used to apply the CSS, in theory like this:
<script type="text/javascript">(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
$('.elementor-336 .elementor-element.elementor-element-e34e354 .elementor-posts-container .elementor-post__thumbnail').css('padding-bottom','0 none !important');
});
}(jQuery));</script>
I am not sure if, when doing it this way, it needs the !important. If you have no means to add javascript to a page, the simplest is a text widget and paste it in there.
Hi
Can you try adding this to your theme’s custom CSS:
.elementor-336 .elementor-element.elementor-element-e34e354 .elementor-posts-container .elementor-post__thumbnail {
padding-bottom: 0 !important;
}
AnonymousInactive
I’m trying to follow along the basic set up with Elementor Pro however when I add the url of my page it causes my page to be displayed using whatever file is found in the following field.
‘Enter the filename of the custom template:’
When I need it to display using the page I’ve created in Elementor.
I see it. So, do you want Masonry On or Off?
#1 The issue with Masonry is that the posts load and then Masonry does it thing to change the posts. What you may be seeing is the posts loading and the Masonry does its stuff, and then they look correct.
OR
#2 Without Masonry but with Ajax, you might be seeing something similar, but Elementor may be applying some changes to the DOM to hide or change the appearance, and that is running late so you see it before and after that code is run.
OR
#3 Without Masonry and NO Ajax, might be the same as #2 above, but the whole page reloads.
Whilst it is not our plugin doing this directly, it might be a consequence. I may be able to fix it with custom CSS. Are you able to send me a live link/URL to your search page so I can take a look?
AnonymousInactive
Hi @trevor, it’s me again. i’m actually still facing this issue which have been bothering for 3 days in a row but i can’t help to write in to you instead…allow me to elaborate. Kindly watch this video first. It’s not long i promise.
https://photos.app.goo.gl/vwcz2KBVGjptauDL7
Right now my issue is this : i can’t seems to get the perfect display to present to my customers.
Info : I am using elementor pro to build the page from scratch. using the portfolio widget as well as S&F plugin. I have used your integration method step by step from your documentation here. https://searchandfilter.com/documentation/3rd-party/elementor/
Problem : As you can see from the video, i would like to display my results in a card layout.
When i set Masonry = off , i always get a unwanted grey box out of nowhere whenever i search for a result.
When i set Masonry = On, Yes! the grey box is gone!!! but… my alignment for the card would be Not be align if i set my title of the card to be 2 rows.
I hope you understand my concerns…. can’t seems to progress far. any professional suggestion from you?
AnonymousInactive
Hi, thanks for the reply trevor.
I did follow everysteps mention in that document. but i manage to “solve” it.
What i did : went over to elementor page builder> under post widget > i need to set “masonry” function to “on” and everything is back to normal. Guess that did the trick.
Though im not so sure if that’s the correct to “solve” it. hahaha but cheers anyway! hope you got a great day trevor. and love your plugin sir.
Did you follow the guidance/documentation for Elementor?
https://searchandfilter.com/documentation/3rd-party/elementor/
We do plan to extend integration for many page builders in V3 of our plugin (I do not have a release timescale for that), but for now the integration covered in the documentation is the only option.