Skip to content

General Discussion

A place to talk about anything Lay Theme related
4.8k Topics 20.3k Posts
  • Image hover addon with video possible?

    5
    0 Votes
    5 Posts
    131 Views
    M
    If anybody needs it, here is the script I used. It was tricky because there was an annoying phenomena between the hover and the scroll functions. Basically while scrolling the page, the browser (Chrome especially) doesn't send any other mouse coordinates, therefore the hovered video was constantly there till the scroll was stopped. Here is a script that avoid this problem: <script> let hoveredElement; let mouseX = 0, mouseY = 0; document.addEventListener('DOMContentLoaded', () => { document.addEventListener('mousemove', event => { mouseX = event.clientX; mouseY = event.clientY; hover(event.target); }); document.addEventListener('scroll', () => { const hoverTarget = document.elementFromPoint(mouseX, mouseY); if (hoverTarget) { hover(hoverTarget); } }); }); function hover(targetElement) { // If the target and stored element are the same, return early // because setting it again is unnecessary. if (hoveredElement === targetElement) { return; } // On first run, `hoveredElement` is undefined. if (hoveredElement) { if (hoveredElement.hasAttribute("data-videoid")) { document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.remove('hoverscrolled'); console.log(hoveredElement.getAttribute("data-videoid")); console.log(document.getElementById(hoveredElement.getAttribute("data-videoid"))); } } hoveredElement = targetElement; if (hoveredElement.hasAttribute("data-videoid")) { document.getElementById(hoveredElement.getAttribute("data-videoid")).classList.add('hoverscrolled'); console.log(hoveredElement.getAttribute("data-videoid")); console.log(document.getElementById(hoveredElement.getAttribute("data-videoid"))); } } </script> HTML: <div data-videoid="one_data" > </div> <video id="one_data" class="vid_background" autoplay muted loop> <source src="https://somevideo.mp4" type="video/mp4"> Your browser does not support HTML5 video. </video> CSS: video.vid_background{ opacity: 0; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -5; width: 40%; position: fixed; height: 50%; -webkit-transition: none; -o-transition: none; transition: none; } video.vid_background.hoverscrolled { opacity: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -5; width: 40%; position: fixed; height: 50%; -webkit-transition: none; -o-transition: none; transition: none; }
  • style numbers

    carousel carousel addon custom
    3
    0 Votes
    3 Posts
    196 Views
    P
    @Johan-Saj I just tried and it also didn't worked… but thanks!!
  • Thumbnail Grid Order is not correct

    9
    1 Votes
    9 Posts
    267 Views
    D
    @arminunruh cool!
  • Optimising heavy site and removing unwanted LayTheme elements

    4
    0 Votes
    4 Posts
    143 Views
    arminunruhA
    these are the image sizes that are generated: '_265', '_512', '_768', '_1024', '_1280', '_1920', '_2560', '_3200', '_3840', '_4096' these are the pixel widths so 768px and so on using the image srcset, only the correct size is loaded into the browser, based on the width of the image in the current browser and device this is more performant than just loading the original image so just because your uploads folder is very large it doesnt mean your website is slow when you visit it you can disable all plugins, lay theme works without any extra plugins but if you want to use any addons → laytheme.com click "addons" you need to keep them activated you can send me your website url and such so i can take a look myself: can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
  • Image hover on images and products

    3
    0 Votes
    3 Posts
    98 Views
    B
    Hey Armin, thanks for the correction. Is the image swap on your to do list too? Thank you
  • Laytheme and Soundcloud

    8
    0 Votes
    8 Posts
    1k Views
    arminunruhA
    also there is this: +more → +embed i think you can just put a soundcloud song url in here maybe that works too
  • 0 Votes
    4 Posts
    98 Views
    arminunruhA
    ok maybe if it doesnt work its the wrong css mmh
  • Image hover speed and animation

    4
    0 Votes
    4 Posts
    192 Views
    arminunruhA
    mh maybe use a transition on the images themselves inside the container, not just the container (sry dont have time to do custom css for you :/)
  • Deleted permalinks showing in google search results

    2
    0 Votes
    2 Posts
    61 Views
    arminunruhA
    i think it takes some time for google to realize these links are gone also make sure u removed any links to these pages also google if you can find a solution maybe a sitemap, dont know
  • Fullscreen slider images flash in Safari

    25
    1 Votes
    25 Posts
    873 Views
    arminunruhA
    hey so when the loop is active on carousels, the carousel will always clone html to make it have an endless loop. when the html is cloned, the image will reload so then there is a flash. nothing i can do here
  • Videos with transparent Background ?

    3
    0 Votes
    3 Posts
    89 Views
    P
    @arminunruh horrible news in the morning :/. Is there a way to play the webm in chrome and a different codec in safari ? Like a hermaphrodite Video ? I also just realized that my phone isn’t interested to play the webm s as well.
  • key not working

    2
    0 Votes
    2 Posts
    46 Views
    arminunruhA
    for license key issues always write licensekeys@laytheme.com
  • Can't add a Footer Menu

    2
    0 Votes
    2 Posts
    63 Views
    A
    hey man, you need to create a new page, design what you need in your footer and then save it. Once you've done that go to Lay Options > Footer and then activate it in there. There's more info here: https://laytheme.com/documentation/footers.html
  • Menu buttons: Some work and some dont

    2
    0 Votes
    2 Posts
    78 Views
    B
    @Bastion problem solved!
  • Category Filter 'space below' in % not px?

    3
    0 Votes
    3 Posts
    75 Views
    P
    @arminunruh oh amazing, thank you :)
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • icon/image in the menu

    2
    0 Votes
    2 Posts
    101 Views
    arminunruhA
    right now thats not possible u can add a css class to a menu point: https://www.lockedownseo.com/add-css-classes-to-menu-items-in-wordpress/ and then use css to put an item there using the ::before of ::after css selector: https://krasimirtsonev.com/blog/article/CSS-before-and-after-pseudo-elements-in-practice
  • list tool does not work correctly

    2
    0 Votes
    2 Posts
    74 Views
    arminunruhA
    ah yes yes will be fixed with the next update!
  • Login: …/wp-admin critical Error

    2
    0 Votes
    2 Posts
    46 Views
    arminunruhA
    hey please look at this: https://laytheme.com/troubleshooting.html#critical-error
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    6 Views

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