Hi 🙂
I see something like this in the first div of the entry-content of the slide :
element.style {
position: relative;
left: -1707.5px;
box-sizing: border-box;
width: 1366px;
}
… Don’t know where it comes from but it seem that it is some Visual composer settings.
Furthermore, your slide content still have a 50% width. You should set it to 100% in your slide Content Styling / Design Parameters / Content Width.
It should be ok with this 🙂
Let me know if that helps.
Cheers,
Julien
Thread Starter
manx89
(@manx89)
Thx!
That was problem. Visual composer has stupid way to push content middle, or full width. But I set left to 0px and now works 🙂
I also need to set autoplay. You said to do this with $.fn.fullpage.moveSlideRight(); and timer. But where to put this code, and how to use timer? I’m beginer with js 🙂 What file I should modify?
Hi !!
Sure, in your Page (fullpage) Events / On Leave, paste this peace of code :
if(nextIndex === 4) {
fullpageAutoSlideTimer = setInterval( function() {
$.fn.fullpage.moveSlideRight();
}, 5000 ); // 5000 means 5 seconds here
}
else {
clearInterval( fullpageAutoSlideTimer );
}
Then, to globalise the fullpageAutoSlideTimer var so that the timer stop each time you leave the section, you’ll have to paste this peace of code at the beginning of the wp-content/themes/sage/wp-fullpage/js/jquery.fullpage.custom.js file :
var fullpageAutoSlideTimer = false;
By the way, as you’ll have to override the templates of WP FullPage in your theme “Sage”, you should create a child theme…
I tested it “live” and it works fine !
Let me know if you need something else…
Best,
Julien