Skip to content
  • 0 Votes
    7 Posts
    95 Views
    S

    @arminunruh great, thank you!

  • 0 Votes
    6 Posts
    141 Views
    RichardR
    Dear @brogr

    Thank you for the feedback it has been noted ✅

    Feature suggestion: It would be nice to have another event exposed that runs once the carousel (or all addons) are initialized. That way we wouldn't have to rely on setTimeout to access swiper. In the case of Swiper, it could use https://swiperjs.com/swiper-api#event-init.

    Have a great day 🌝 Richard
  • 0 Votes
    20 Posts
    4k Views
    arminunruhA

    u can find the correct working code here:

    https://laytheme.com/documentation/custom-javascript.html#newpage-events

    <script> var colors = ["#fff", '#000', '#f0f', '#0ff', '#00f', '#ff0', '#0f0'] window.laytheme.on("newpageshown", function(){ var ix = getRandomInt(0, colors.length); var color = colors[ix]; jQuery('#grid, #custom-phone-grid, .cover-region-desktop, .cover-region-phone, #footer, #footer-custom-phone-grid').css('background-color', color); }); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random // Returns a random integer between min (included) and max (excluded) function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } </script>

    @Giammi
    read the text at the link above, u can find out how to do that there

  • 0 Votes
    1 Posts
    435 Views
    No one has replied
Before you post:
  1. When using a WordPress Cache plugin, disable it or clear your cache.
  2. Update Lay Theme and all Lay Theme Addons
  3. Disable all Plugins
  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

This often solves issues you might run into

When you post:
  1. Post a link to where the problem is
  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
Online Users
R
Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com