undfine
Forum Replies Created
-
Forum: Reviews
In reply to: [Meta Field Block] Brilliant! Simple, but very effective.Thank you for your reply and consideration! There are a few plugins I know of that can do this with custom fields: Unlimited Elements for Elementor uses Twig templating, Bricks Builder and Breakdance are also supposed to be able to, but I haven’t used them yet. PODS uses its own templating (so only those fields built with it and some other “magic tags.” It’s generally very powerful, but sometimes overkill. Thanks again!
Hello again,
For whatever reason the jQuery object method wasn’t working for me, but I was able to get and change the params using JS.
const contract_swiper = document.querySelector('#swiper-id .swiper-container'); const swiper_itself = contract_swiper.swiper;
from here, the code is the same:
swiper_itself.params....
Hello and thanks for the reply!
I also am unable to get this to work. Using the same variable names (but custom #selector_id) as your example, when I check in the console, ‘contract_swiper’ is defined, and ‘swiper’ is listed as part of its data, but ‘swiper_itself’ is undefined. Getting error:
Cannot read properties of undefined (reading 'params')
contract_swiper.data( 'swiper' );
does not seem to be returning the actual swiper instance.I’ve tried extending the timeout, in case it wasn’t loaded yet, but even trying to get or set the params in console isn’t working.
Is this method still working for you?
Thanks again!
Hi, did you ever find a solution to this? I would like to do the same thing.
It seems there should be a way to get the Glider (swiper) instance and pass the “releaseOnEdges” option.
This post might also help:
https://www.ads-software.com/support/topic/cant-access-swiper-js-instance-of-a-glider/Although it would be nice if the instance initiated with that param rather than having to change it after.
Turned out this was caused by another plugin.