Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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

N

Nzagamba

@Nzagamba
About
Posts
48
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • vimeo embedded in element grid - slow on mobile and scroll issue
    N Nzagamba

    I embed quite a few videos in my Element Grids. I use the laytheme function to add the vimeo videos.
    The vimeo videos are set to autoplay, muted, and loop.
    Here is my page
    There are a few issues I face:

    Desktop:

    • First video somehow loads very very slow, the videos further down work great, why is the first video not playing directly? It shows a black video for a long time, before playing.
    • scroll issue: when scrolling down over a video, somehow scrolling blocks and slows down. Why? Can I turn this off?

    Mobile:

    • Videos on mobile don't load, or load very slowly, why is this?

    Is there any way, I can improve these bugs?

    Bug Reports

  • mobile menu Style 1 - dark transparent background
    N Nzagamba

    I would like to darken the background of the website, when my mobile menu style 1, drops down.
    The css rule of the background could be something like the bellow, but I couldn't figure out to what class or div I need to point this css to:

    /* Transparent full-page overlay behind the menu */
    .menu-overlay { /* what is the correct class???  */
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5); 
      opacity: 0;
      transition: opacity 0.25s ease;
      z-index: 1000;
    

    IMG_6408.jpg

    General Discussion

  • Menubar shows up on Mouseover but shouldn’t
    N Nzagamba

    I have the same issue, and would love to have it resolved, my menu bar correctly hides, when scrolling down, but shows up, when I mouse over on the top area. it should stay away and only appear, when scrolling up. Is there a fix for this? here my site.

    Bug Reports

  • Anchor scroll position, relative to filterbutton div height
    N Nzagamba

    I also have a second issue, with the same filterbutton-menu from above. In mobile I used css and js to collapse the menu. For some reason, on iphone safari, once I click on one of the filter buttons, the bottom area suddenly covers in white. I spent hours with ChatGPT, trying to find the bug, but couldn't find a solution. So, here I am, I need some human help with this? :-) Could anyone look into it? Bellow images showing the correct screenshot on the left and the bug version on the right (once clicked on a filter button.

    IMG_6358.jpg IMG_6359.jpg

    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • Anchor scroll position, relative to filterbutton div height
    N Nzagamba

    Situation (here is my website draft):

    • I have 12+ filter buttons, position fixed on top of the website.
    • the buttons have anchor links that scroll to a certain area.

    Problem:

    • Depending on the screen width, the div, holding the buttons has a different height, breaking into 2, 3, or 4 lines, which makes the div height increase, on smaller screens. This is a problem, because the anchor scroll position should be relative to the div height holding the buttons, it should always scroll to the bottom edge of the div holding the buttons. Now the anchor links scrolls underneath the buttons on small screens. I put a padding-top 200px on the content div, but this only works for wide screens, not when the buttons break in to 3 or 4 lines, on smaller screens.

    Any suggestions or tipps on how I can solve this? I'm happy to get some help on this. Many thanks in advance!

    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • change custom play icon
    N Nzagamba

    Other question related to custom video button:
    I am embedding videos in element grid here, using custom play button. I noticed an issue in chrome, that the sound is muted, even though in Laytheme I did not click the settings "mute". In safari, the sound seems to work. Also I tried to use the regular vimeo play button, and the sound also played in safari. Any tipps on how to solve this one?

    General Discussion

  • change custom play icon
    N Nzagamba

    Thanks Armin, my svg hav a size set already. and today suddently it worked, I think it was a cache issue of an old svg... glad it works now! Beautiful!

    General Discussion

  • change custom play icon
    N Nzagamba

    just trying to upload my own video play icon and have the same issue with svg. I set the css to:

    .lay-vimeo-playicon-custom img {
      width: 200px !important;
    }
    

    but the svg is still scaled up to the edge of the video.
    with png, I could set the image to 200x200px, but then the resolution of the icon looks pixel on retina displays

    what am I missing?

    General Discussion

  • Wish: Scroll-Driven Carousel (Locomotive-Style) & Mobile Stacked View
    N Nzagamba

    Thanks Armin! Looking forward this! You are amazing!

    Feedback

  • Wish: Scroll-Driven Carousel (Locomotive-Style) & Mobile Stacked View
    N Nzagamba

    I tried to doing a test here (desktop version) to get as close to what I am looking for. kind of works on desktop version, but the scroll only functions when the cursor is on the carousel, which makes it not very user friendly, sometimes the carousel is cut off on top or bottom of the browser while scrolling horizontally. On mobile the scroll doesn’t work at all. Any tipps on how to fix this scroll behaviour?

    Feedback

  • Wish: Scroll-Driven Carousel (Locomotive-Style) & Mobile Stacked View
    N Nzagamba

    Hi LayTheme team,

    I’m using the “slide” transition for my carousel and I’m wondering if a specific scroll behaviour could become a native feature.

    When the user scrolls down and reaches a full-width carousel, it would be amazing if the vertical scroll could be mapped to a horizontal progression through the carousel images. After reaching the last image, the page would continue scrolling down normally again.

    In other words: a vertical → horizontal → vertical scrolling experience, similar to the smooth effects seen with Locomotive Scroll.
    It could even work so that the vertical scrolling continues very slowly during the horizontal movement, and then speeds up again once the carousel is finished.
    I know this could be achieved with custom GSAP code, but having this as a native option in the Carousel Add-on would make it much more accessible.

    Second wish:
    A toggle to switch the carousel to a simple stacked layout on mobile (images underneath each other). Carousels often feel clumsy on mobile, and a “stack on mobile” option would be extremely helpful.

    Looking forward to hearing what other think, about this idea.

    Feedback

  • custom collapsible mobile filter menu - need some javascript help
    N Nzagamba

    Aaaah, I finally found a solution. I think it works well now...
    Many Thanks @arminunruh !

    Here the current website (The menu is visible in the mobile version)

    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • custom collapsible mobile filter menu - need some javascript help
    N Nzagamba

    @arminunruh Thanks for your tipp! Point1 works now, Thanks!
    Point two (overlay div) is driving me crazy. I've been trying to do this in Javascript, because it didn't work properly by placing the div in the Laytheme Gridder. I tried in so many ways to set the z-index of the filter buttons higher than the overlay div, but it didn't work. The issue is, that the overlay div is covering all the filter menu buttons, so they are not clickable anymore. (in mobile view). What am I missing?

    Here the current website (please visit the mobile version)

    Here's my css:

    .bottom-menu {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      transform: translateY(100%);  /* <- Menu is outside the screen */
      transition: transform 0.25s ease;
      z-index: 9998 !important;
      background: none; /* or your desired background */
      pointer-events: none; /* so it can't be clicked when closed */
    }
    
    .bottom-menu.open {
      transform: translateY(0); /* <- Menu slides in */
      pointer-events: auto;
    }
    
    .menu-toggle-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        background: #00ff00;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 9999 !important;
        transition: background 0.1s ease;
    }
    
    .menu-toggle-btn:hover {
        background: #00ff00;
    }
    .mobile-toggle-wrapper { 
        z-index: 9999 !important; /* brings green filter mobile button to the front */
    }
    
    .laybutton2 {
        display: block !important;
        margin: 6px auto !important;
        width: fit-content !important;
    }
    
    /* 
     * Invisible overlay that covers the entire page,
     * to catch clicks outside the menu
     * as long as the filter menu is open.
     */
    .menu-overlay {
      position: fixed;        /* Fixes the overlay relative to the viewport (remains visible while scrolling) */
      top: 0;                 /* Starts at the very top */
      left: 0;                /* and far left */
      width: 100vw;           /* Takes up the entire width of the viewport */
      height: 100vh;          /* and the entire height */
      background: rgba(255, 0, 0, 0.2); /* Invisible background – you can use something like rgba(0,0,0,0.2) for a slight shadow */
      z-index: 9000 !important; /* Lies below the menu (which has z-index: 9999), but above images and other content */
      display: none;          /* Hidden by default */
      pointer-events: auto;   /* important: clicks should be recognized */
    }
    
    /*
     * When the menu is open, the overlay gets the class 'active'.
     * This makes it visible and starts catching clicks.
     */
    .menu-overlay.active {
      display: block;         /* Shows the overlay */
    }
    

    here's my javascript:

    <!-- Mobile Filter Menu Logic -->
    <script>
      window.laytheme.on("newpageshown", function() {
        // 1. Insert the overlay only once, if it doesn’t already exist
        if (!document.querySelector('.menu-overlay')) {
          const menuOverlay = document.createElement('div');     // Create a new <div>
          menuOverlay.className = 'menu-overlay';                // Assign the CSS class
          document.body.insertBefore(menuOverlay, document.body.firstChild); // Insert it at the top of the body
        }
    
        // 2. Store element references
        const menuButton = document.getElementById('toggleButton');      // The green toggle button
        const menu = document.getElementById('phoneMenu');              // The mobile filter menu
        const overlay = document.querySelector('.menu-overlay');        // The transparent overlay
    
        // 3. Abort if something is missing (e.g. on a page without the menu)
        if (!menuButton || !menu || !overlay) return;
    
        // 4. Select all links inside the menu
        const links = menu.querySelectorAll('a');
    
        // 5. Function to close the menu
        function closeMenu() {
          menu.classList.remove('open');                // Remove "open" class
          menuButton.style.display = 'flex';            // Show the toggle button again
          overlay.classList.remove('active');           // Hide the overlay
          document.body.classList.remove('no-scroll');  // Allow scrolling again
        }
    
        // 6. Function to open the menu
        function openMenu() {
          menu.classList.add('open');                   // Add "open" class
          menuButton.style.display = 'none';            // Hide the toggle button
          overlay.classList.add('active');              // Show the overlay
          document.body.classList.add('no-scroll');     // Block scrolling
        }
    
        // 7. Only add click listener to toggle button once
        if (!menuButton.dataset.listenerAttached) {
          menuButton.addEventListener('click', (e) => {
            e.stopPropagation(); // Don’t propagate click (e.g. to the overlay)
            if (menu.classList.contains('open')) {
              closeMenu();
            } else {
              openMenu();
            }
          });
          menuButton.dataset.listenerAttached = "true"; // Set a flag
        }
    
        // 8. Every link in the menu closes the menu when clicked
        links.forEach(link => {
          link.addEventListener('click', () => {
            setTimeout(() => {
              closeMenu();
            }, 300); // Wait 300ms so the link still works
          });
        });
    
        // 9. Clicking the overlay also closes the menu
        overlay.addEventListener('click', () => {
          closeMenu();
        });
    
        // 10. Clicking outside the buttons (in the wrapper) also closes the menu
        const filterWrapper = document.querySelector('.lay-textformat-parent');
        if (filterWrapper) {
          filterWrapper.addEventListener('click', (event) => {
            // Only if a link wasn’t clicked directly
            if (!event.target.closest('a')) {
              closeMenu();
            }
          });
        }
      });
    </script>
    
    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • Metadata from image not fully imported in WP
    N Nzagamba

    @arminunruh ah that would be sweet! Yes, Caption and title where imported by WP, by Default from my image metadata. Even though I found a solution with the plugin Media Library Assistant, it would be awesome to habe a feature in Laytheme itself. Copying the Caption to Alt text and Description would do the job.

    I’m always a bit scared that all the wp plugins will crash my laytheme website. 🙈

    General Discussion

  • Metadata from image not fully imported in WP
    N Nzagamba

    Hi Armin, thanks for your thoughts!
    To clarify, I organize and edit my original scans (tif) in Adobe Lightroom. There I add the Metadata (Title, Caption, Alt text, Description). I thought it would make things easier for my overview and for SEO. Then I export the jpg for WP, including the metadata in the image.
    I have done a lot of googling and Chatgpt on this. :-) I finally used a plugin called Media Library Assistant, to fetch the metadata and fill it in the WP fields. It’s just so weird that WP does not do this task natively.

    General Discussion

  • custom collapsible mobile filter menu - need some javascript help
    N Nzagamba

    Update: Thanks to ChatGPT I managed to fix some parts of the missing pieces of my menu. current site on mobile looks like this.

    What I still struggle with and am looking for a solution:

    1. Filter menu does not work when visiting the site for the first time, navigating through the main menu. only after reloading the page, the filter menu works. Any solution?

    2. When clicking outside of the filter buttons, on an image, instead of closing the filter, the lightbox zooms the image directly. I would like the menu to close, before lightbox is active again.

    Some help from an expert would mean the world to me!

    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • custom collapsible mobile filter menu - need some javascript help
    N Nzagamba

    Armin, you would be my hero, if you could help me out with this one! I've sent you the details per email a while ago. did you receive it?

    Need Custom Coding for Lay Theme? Find 3rd Party Developers here.

  • same caption for image and lightbox
    N Nzagamba

    I just tested the new feature. I was wondering, if it is somehow possible to set two different textformats, one for the general image caption and the other one for the lightbox caption? I saw that in the lightbox settings, I can set a textformat, but it doesn't have an influence, in combination with the gridder element caption. That would be wonderful to have an option for this.

    General Discussion

  • Metadata from image not fully imported in WP
    N Nzagamba

    I have a large archive of drawings (jpg files) with Metadata ( Title, Description, alt text, Caption etc...)
    While WP imports "Title" and "Caption", it does not import "Alternative Text" and "Description". Is there a simple solution for this? I was so much hard work to add the metadata to all my images...
    Screenshot 2025-04-11 at 17.47.27 1.png

    General Discussion

  • same caption for image and lightbox
    N Nzagamba

    You are amazing, @arminunruh !!!

    General Discussion
  • Login

  • Don't have an account? Register

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