Save
Saving
-
dani
try this:
HTML
<div class="more">Click here for more info</div> <div class="less">Here is the hidden content</div>
Use <div> instead of <p>, so that you can use <p> within the hidden content.
CSS
/* open close dots - see JS */ .more:hover:after { content: " ○○○"; } .more:after { content: " ●●●"; } .less { display:none; }
JS
<script> window.laytheme.on("newpageshown", function(layoutObj, type, obj){ /* open close dots */ jQuery('.more').click(function(){ jQuery(this).next().slideToggle(); jQuery('.less').not(jQuery(this).next()).slideUp(); }); }); </script>
-
-
-
-
dani
https://wordpress.org/plugins/qtranslate-x/
WP is not longer supporting this plugin. I've had some problems with it recently, perhaps that's why.
-
-
-
dani
Hi,
I'm trying to send a new speed variable to the carousel swiper function. The JS is
var w = jQuery(a).find(".swiper-container"), m = new Swiper(w[0], { speed: 350, effect: "slide", spaceBetween: v,
And I'm adding this in an HTML block on the page
<script> jQuery( document ).ready( function() { const imageCarousel = jQuery ( '.swiper-container' ), swiperInstance = imageCarousel.data( 'm' ); swiperInstance.params.speed = '1000'; swiperInstance.update(); }); </script>
Error in the console is:
(index):1352 Uncaught TypeError: Cannot read property 'params' of undefined at c.Channel.<anonymous> ((index):1352) at p (backbone.min.js?ver=1.4.0:2) at f (backbone.min.js?ver=1.4.0:2) at c (backbone.min.js?ver=1.4.0:2) at c.Channel.n.trigger (backbone.min.js?ver=1.4.0:2) at frontend.app.min.js?ver=3.8.5:1
Anyone know how to set a new speed via a script?
Thanks!