I’m developing a WordPress website. There are a few sections that I made by Owl Carousel js plugin. I’m developing this site with Elementor page builder for WordPress. It works fine in site preview but not showing in Elementor Live Preview (in Edit mode).
Please help me with a solution.
Thanks.
3
Answers
i know its a bit late, but i had the same problem.
The problem is, that the owl function gets called at the wrong time. (I assume at page load).
Just call owl carousel at the end of your render function and it should work.
Like so:
As @nukeurself said, the owl function called at the wrong time. As he mentioned appending the following line to
render()
function makes the owl function called at the right time.But this doesn’t solve the width problem. In order to solve both owl function issue and the width issue, the following code lines have to be appended with the
render()
function. The following lines make the owl function load after the elementor scripts are fully loaded.