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. Bug Reports
  3. Bug on specific project page

Bug on specific project page

Scheduled Pinned Locked Moved Bug Reports
10 Posts 2 Posters 248 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.
  • C Offline
    C Offline
    craigfeldspar
    wrote on last edited by
    #1

    hi, I've had a bug for a long time on this one project page, the images don't all load in the carousel or in the footer afterwards. I've tried making a new page, changing the url, following the steps to follow before posting here, but it always comes back.
    I'd be grateful to understand what's going on : https://www.benoitlefeuvre.com/iridescence/

    Thanks in advance,
    Benoît

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

      wow nice cursors!

      do you have a screenshot? which slide is it not loading for?
      for me everything is loading

      1 Reply Last reply
      0
      • C Offline
        C Offline
        craigfeldspar
        wrote on last edited by
        #3

        Capture d’écran 2024-08-20 à 10.31.01.png Capture d’écran 2024-08-20 à 10.30.35.png thank you!

        it happens when you come from home, it's certain images in the carousel and footer that take a long time to load and asynchronously, it's the only page that does this.

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

          Screenshot 2024-08-30 at 21.11.47.png

          Screenshot 2024-08-30 at 21.12.59.png

          when i navigate around on your site sometimes i get this error

          do you think it has to do with your javascript maybe?

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

            i think your js maybe should be like this instead:

            let cursorX = 0;
            let cursorY = 0;
            
            // Capture et stocke la position actuelle du curseur
            document.addEventListener("mousemove", (e) => {
            	cursorX = e.clientX;
            	cursorY = e.clientY;
            	updateCursorPosition();
            });
            
            // Fonction pour mettre à jour la position des éléments
            function updateCursorPosition() {
            	const followTexts = document.querySelectorAll(".numbers");
            	followTexts.forEach((followText) => {
            		followText.style.left = cursorX + "px";
            		followText.style.top = cursorY + "px";
            	});
            }
            
            window.laytheme.on("newpageshown", function(){
            	// Événement personnalisé pour le changement de page du carousel
            	const carousel = document.querySelector('.carousel');
            	if(carousel) {
            		carousel.addEventListener('slide.bs.carousel', () => {
            			setTimeout(updateCursorPosition, 0);  // Met à jour la position après le changement de page
            		});
            	}
            });
            

            Does that help?
            This checks for the existence of a carousel and only runs the code once the layout of a page has shown up using
            window.laytheme.on("newpageshown", function(){

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

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

              another thing you could try is go to settings → permalinks

              and click "save" there and see if there are any warnings shown at the bottom
              and if you have an image plugin you could disable it

              and you could go to lay options → and in there disable lazyloading

              you could also try and disable lazyloading in lay options → carousel addon
              does that help?

              1 Reply Last reply
              0
              • C Offline
                C Offline
                craigfeldspar
                wrote on last edited by craigfeldspar
                #7

                I changed web hosting (which was already planned) and the bug doesn't seem to appear anymore.

                thank you for updating the js code, but the script doesn't work between pages on carousel, the cursor resets to the top left, do you have any idea how to do this? if you prefer, we can close this topic and open another.

                Thanks in advance!

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

                  mh i think in your javascript you can hide the cursor on newpageshown and only show it when someone moved the mouse

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    craigfeldspar
                    wrote on last edited by
                    #9

                    I figured out how to do it: https://benoitlefeuvre.com/

                    <script>
                    let cursorX = 0;
                    let cursorY = 0;
                    let cursorMoved = false; 
                    
                    document.addEventListener("mousemove", (e) => {
                        if (!cursorMoved) {
                            showCursor(); 
                            cursorMoved = true;
                        }
                        
                        cursorX = e.clientX;
                        cursorY = e.clientY;
                        updateCursorPosition();
                    });
                    
                    function updateCursorPosition() {
                        const followTexts = document.querySelectorAll(".numbers");
                        followTexts.forEach((followText) => {
                            followText.style.left = cursorX + "px";
                            followText.style.top = cursorY + "px";
                        });
                    }
                    
                    function showCursor() {
                        const followTexts = document.querySelectorAll(".numbers");
                        followTexts.forEach((followText) => {
                            followText.style.display = "block"; 
                        });
                    }
                    
                    function hideCursor() {
                        const followTexts = document.querySelectorAll(".numbers");
                        followTexts.forEach((followText) => {
                            followText.style.display = "none"; 
                        });
                    }
                    
                    window.laytheme.on("newpageshown", function() {
                        cursorMoved = false; 
                        hideCursor();
                    });
                    </script>
                    
                    1 Reply Last reply
                    1
                    • arminunruhA Online
                      arminunruhA Online
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #10

                      wow great!

                      1 Reply Last reply
                      0
                      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
                      R
                      ruwie
                      W
                      wua.frank
                      arminunruhA
                      arminunruh
                      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