Skip to content

General Discussion

A place to talk about anything Lay Theme related
4.2k Topics 17.6k Posts
  • Create 'inactive' menu for submenu on hover

    3
    0 Votes
    3 Posts
    38 Views
    R

    @arminunruh
    Thanks for the quick reply

    Forgot to mention, I know about click but was wondering if this could be possible with on hover feature?

    So hover, yes
    Click, no

    pointer-events: none; unfortunately takes out the entire submenu.

  • JSON invalid error

    2
    0 Votes
    2 Posts
    16 Views
    arminunruhA

    thanks i think we're in email contact already

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    2 Views
  • Image multiply blend mode

    6
    0 Votes
    6 Posts
    408 Views
    arminunruhA

    sorry dont have time to support you in this custom css

  • This topic is deleted!

    2
    0 Votes
    2 Posts
    21 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    2 Posts
    35 Views
    arminunruhA

    mmh have u tried? if it didnt work then it probably doesnt work

    why do u need to use webm, can u convert it to h264 mp4

  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • This topic is deleted!

    2
    0 Votes
    2 Posts
    32 Views
  • This topic is deleted!

    5
    0 Votes
    5 Posts
    18 Views
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Vimeo Embed in Carousel

    4
    0 Votes
    4 Posts
    40 Views
    A

    @Richard Just wanted to say that I just realized the Vimeo option was added to the carousel and I just wanted to say THANK YOU!

    ahah. Hope you have a nice day!

  • Image hover addon with video possible?

    5
    0 Votes
    5 Posts
    53 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

    3
    0 Votes
    3 Posts
    47 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
    71 Views
    D

    @arminunruh cool!

  • 0 Votes
    4 Posts
    40 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
    45 Views
    B

    Hey Armin,
    thanks for the correction.
    Is the image swap on your to do list too?
    Thank you

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