Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
  3. Custom Js not working on 600px breakpoint

Custom Js not working on 600px breakpoint

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
3 Posts 2 Posters 189 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Popupcult
    wrote on last edited by
    #1

    Hi there,

    I’m hoping someone can help me out. I’ve been stuck on this for a couple of days now.

    I’m using two custom JS elements on a website that work perfectly on desktop, but on mobile (at the 600px breakpoint), they disappear completely. I’ve tested different browsers and devices, disabled AJAX, and turned on Compatibility Mode, but no luck so far.

    You can check them out here:
    – The CanvasAnimation (ScrollTrigger) on: https://stagging.ralphbruens.nl/technology
    – The Leaflet map on: https://stagging.ralphbruens.nl/contact

    Would really appreciate any pointers or ideas. Thanks in advance!

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      ok and whats the js code u use to make this work?

      ure using custom phone grid on both these pages.

      please note with custom phone grid, your markup will be duplicated.
      one markup for desktop, one for phone.

      so you need to make sure to initialize your JS for both of these canvases on the page

      sidenote: u can disable any lay theme plugins you dont use. cause each lay addon loads its own js file and css file. and u may not need them all

      P 1 Reply Last reply
      1
      • arminunruhA arminunruh

        ok and whats the js code u use to make this work?

        ure using custom phone grid on both these pages.

        please note with custom phone grid, your markup will be duplicated.
        one markup for desktop, one for phone.

        so you need to make sure to initialize your JS for both of these canvases on the page

        sidenote: u can disable any lay theme plugins you dont use. cause each lay addon loads its own js file and css file. and u may not need them all

        P Offline
        P Offline
        Popupcult
        wrote on last edited by
        #3

        @arminunruh Thanks for pointing me in the right direction. I did some tweaks to my code, and it's working for now.

        1 Reply Last reply
        1
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        I also code custom websites or custom Lay features.
        💿 Email me here: 💿
        info@laytheme.com

        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
        A
        alasdair17
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search