Skip to content

General Discussion

A place to talk about anything Lay Theme related
4.4k Topics 18.6k Posts
  • 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
    47 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
    57 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
    75 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
    77 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
    101 Views
    D

    @arminunruh cool!

  • 0 Votes
    4 Posts
    58 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
    72 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
    65 Views
    arminunruhA

    ok maybe if it doesnt work its the wrong css mmh

  • Image hover speed and animation

    4
    0 Votes
    4 Posts
    74 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 :/)

  • 0 Votes
    2 Posts
    29 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

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