Marius heres a link to a cover project page - I don't have the fullscreen option ticked like @zochovsky suggested and mine is still not working on mobile - I removed all custom css in case that was an issue and did not change anything. I don't have the disable on mobile checked either. https://nbd2.wingtipdesign.com.au/suburban-culture/
SteveWTD
Posts
-
Cover option on mobile not working -
Cover option on mobile not workingSame problem
-
Enable Hash Navigation on carouselThanks Arminunruh
so if I use the following<script> jQuery(document).on("click", ".id-28 .element-collection .element-wrap", function(event) { var slideno = jQuery(this).find("img").attr("alt"); window.location.href = '/portfolio#' + slideno; }); var urlhash = window.location.hash.substr(1); window.laytheme.on('newpageshown', function(){ var mySwiper = document.querySelector('.swiper-container').swiper; // Now you can use all slider methods like mySwiper.slideTo(urlhash, 1, false); }); </script>
no matter what slider method I use I get error like "TypeError: undefined is not an object (evaluating 'mySwiper.slideTo')" this suggest a timing issue as the object is not there can you see where I am going wrong.
Thanks for your help. -
Enable Hash Navigation on carouselLooking at the docs for swiperjs
https://swiperjs.com/demos/#hash_navigation
if I want to navigate with the url hash feature
I need to add these parameters to the swiperhashNavigation: { watchState: true, },
there is reference in the api to add parameters after the swiper is initialised but I can't work this out my coding skills are not advanced eg
var mySwiper = document.querySelector('.swiper-container').swiper // Now you can use all slider methods like mySwiper.slideNext();
is this how it would be done Ive tested this above and it does not work? any help or pointers would be apreciated.
Does the mySwiper variable have to be the same name as lay themes carousel variable if so what is it by default - layCarousel?Thanks
-
Swiper js missing?Thanks that showed it only appears when logged in to the Wordpress admin so I will ignore.
-
Swiper js missing?Thanks - Test site here
https://nbd2.wingtipdesign.com.au -
Link to carousel slideThis may have been asked before but can anyone point to how to link to a particular slide in a carousel from a hyperlink on another page.
With the flickity slider it was possible using javascript but I don't know how to with the updated carousel I notice that we can target the data id of the slide but wondering if anyone has done this already?
Thanks -
Swiper js missing?Hi there I have a fresh install today and I have noticed in the inspector I have a 404 on the below javascript - can anyone tell me what it does for the carousel and should this be missing I am using version 1.5.1 Carousel with 2.9.5 theme.
Thanks