Farouk
Forum Replies Created
-
No it is not resolved.
Spectra (ex Ultimate Addons)
- This reply was modified 2 years ago by Farouk.
My code :
//Intersection observer const images = document.querySelectorAll('img.mod-img,img.lazy'); var imageOptions = { root: null, rootMargin: '0px 0px 0px 0px', threshold: 0.3, } const observer = new IntersectionObserver((entries, observer) =>{ entries.forEach(entry => { entry.target.src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; if(!entry.isIntersecting) return; var image = entry.target; const newUrl = image.getAttribute('data-img'); ScrollTrigger.refresh(); //const srcSet = image.getAttribute('data-srcset'); image.src = newUrl; //image.srcset = srcSet; image.classList.add('lazyloaded'); observer.unobserve(image); }); }, imageOptions); images.forEach(image => { observer.observe(image); })
When i add this, nothing works :
jQuery(document).on(‘ready’, function(e){
images.forEach(image => {
observer.observe(image);
})
});
I have resolved the main problem. In my functions.php, there still be a filter which desactivate css and js
Now it’s good.
But another problem still present : with ajax, my lazy load image doesn’t appears after select a filter.
the img tag is empty, but only data-img remain
- This reply was modified 2 years, 2 months ago by Farouk.
Or is there a way to add in the custom template /filters.radio.php a first li button with the label “all categories”
It would be so nice !
Can you give me a tip ?No news ?
I would like to add manually a <span>Reset my filters</span> or <span>Show all categories</span>”to reset all my radio buttons
The radio buttons list all cagetories, but not the “all categories” for going back to the beginning
How to do that ?
Is there a function in javascript ?
Ok i will try.
But I suggest you this new feature as soon as possible because I think it is a prior need for users around the world.
A lot of people using your plugin are not English and their users are not English too.
Thank you
- This reply was modified 2 years, 6 months ago by Farouk.
Forum: Plugins
In reply to: [WP Import Export Lite] Export taxonomy description ?Ooooohh sorry !
I didn’t see that.
Thank you very much !
Have a nice day too.