Skip to content
Advertisement

Tag: swiper

Removing or creating HTML with PHP

I’m using a Swiper.js slide on this project and the images and texts of every single slide are going to be controlled through the WordPress panel, including how many ‘pages’ the Slide will have. This means that if the client decides that the slide will have, let’s say 5 pages, the var $swiperPages will store this number 5, so I

Disable swiper.js autoplay using inline if statement

Im trying to disable the swiper autoplay depending on a widget name parameter that gets me the a value. (Im using magento widget and i get the value from the widget.xml) Here is a example: with the other values its easy because its a true of false but in this case i need that code to appear if my $block->getData(‘autoplay’)

Advertisement