Skip to content

General Discussion

A place to talk about anything Lay Theme related
4.2k Topics 17.6k Posts
  • How to fix a block text on a project

    2
    0 Votes
    2 Posts
    15 Views
    RichardR
    Dear Jean-Baptiste @janjan

    Could you please post a link to the project with Description. Also you current code will help πŸ”

    .textproject{ position:fixed; z-index:1000; } Best wishes & talk soon 🌝 Richard
  • Can you change a page to a project?

    3
    0 Votes
    3 Posts
    18 Views
    RichardR
    Dear @herroherren

    This thread should help:

    http://laythemeforum.com:4567/topic/7259/migrate-copy-page-content-to-project/2?_=1635195478800

    Best wishes 🌝 Richard
  • 0 Votes
    2 Posts
    27 Views
    RichardR
    Dear @pingbird

    You are correct, the Project Title does not show automatically at the top of the project. Normally this would be done Manually and depend on your design.

    If interested, this code jQuery('body').attr("data-id") will give you back the 'Slug' or Project Title. The hyphen will need to be removed.

    Custom Code can be added via:

    Lay Options > Custom CSS & HTML >

    Customize > CSS

    Gridder > +More > +HTML

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

    Hope this helps @pingbird , have a wonderful day πŸ– Richard
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Adding fade out to png files

    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • How do I move the footer to the top?

    2
    0 Votes
    2 Posts
    39 Views
    RichardR
    Dear Leopold @Leopold-Lenz

    Have you since changed your setup? The split-screen is using "rows" rather than the #footer-region . Maybe i have mis-understood.
    Screen Shot 2021-10-21 at 6.58.55 PM.png

    Talk soon Leopold & best wishes 🌝 Richard
  • 0 Votes
    4 Posts
    41 Views
    RichardR
    Awesome Felix πŸ’₯Thank you @ffinger
  • 0 Votes
    7 Posts
    89 Views
    RichardR
    Dear Henriette @henriettebrueck

    Ah, interesting, I wondered why we had different results. Thanks for the update, did you find a solution for the .com version?

    Best wishes ✨ Richard
  • Highlight active Anchor scroll menu point

    10
    0 Votes
    10 Posts
    517 Views
    RichardR
    Dear Lorenzo @lorenzomala

    Javascript or jQuery must first be placed inside a "newpage event" when adding to Lay Theme https://laytheme.com/documentation.html#custom-javascript

    Newpage Events
    Because your Lay Theme website is a "Single Page" JavaScript application you cannot just use jQuery(document).ready(…) to execute your js because the ready event only fires once when the website loads the first time.

    Since Lay Theme 1.056 you can use a JavaScript event to execute your own JavaScript whenever a project, page or category is visited. The event is called "newpageshown". It will trigger when a new project, page or category has rendered.

    window.laytheme.on("newpageshown", function(layoutObj, type, obj){ // your code would go here }); layoutObj is a an empty object. This used to contain the - layout's JSON, but was deprecated. type can be either "project", "page" or "category". obj is WordPress' post, page or term object. These objects contain general information like ids and slugs.

    Any jQuery '$' symbols must be written in full "jQuery" e.g

    $(addClass); becomes jQuery(addClass);

    Custom Code is most likely to be placed in "Custom <head> Content" in > Lay Options > Custom CSS & HTML >

    Best wishes Lorenzo & have a great day πŸ– Richard
  • Portrait Format Videos getting cropped

    10
    0 Votes
    10 Posts
    175 Views
    RichardR

    @thomasmaier Thank you for posting, will keep this information for the future. πŸ•°

    Best wishes Richard
  • 0 Votes
    2 Posts
    1k Views
    RichardR
    Dear @baferti

    I assume this is not for a Looping effect? The following solution worked for me:

    https://stackoverflow.com/questions/8132890/make-html5-video-go-to-first-frame-when-it-ends

    The <video> element must be targeted in the code below. Here getElementById looks for the element with the id "video" (i have added it myself for testing) Screen Shot 2021-10-21 at 2.40.34 PM.png

    var video = document.getElementById('video') // When the 'ended' event fires video.addEventListener('ended', function(){ // Reset the video to 0 video.currentTime = 0; // And pause ready for video.pause(); });

    Video is set back to 0:00 timing. Getting it to work with your particular design will be up to you, but i hope this helps!

    Best wishes & have a wonderful day πŸ– Richard
  • New Features Added

    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Full Screen Slider swipe speed

    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • Hide top menu

    6
    0 Votes
    6 Posts
    30 Views
    RichardR
    Dear @GAP

    The Burger menu for all Layouts is in the notes for future discussion. Custom coding or using the Mobile layout is the only way currently. You may also wish to look into "accordions" many users on the forum have integrated them before. This way the menu would open out into many listed menu points.

    https://www.w3schools.com/howto/howto_js_accordion.asp

    Best wishes Richard
  • Website loads slowly

    3
    0 Votes
    3 Posts
    17 Views
    felix_rabeF

    @adamk u use a lot of high quality gifs with 10 mb in size on your homepage, and suqeeze them into small thumbnails. I think it will run faster if you optimize this.

  • 0 Votes
    2 Posts
    11 Views
    RichardR
    Dear @solenne

    Do you currently have the embed removed from the page: https://www.clavefineart.com/en/claudine-drai-claude-de-soria-dames-2/ ? (i believe this is the correct page)

    Screen Shot 2021-10-12 at 12.52.32 PM.png

    I can force insert it with developer tools, but this does not give the same idea.
    Screen Shot 2021-10-12 at 12.56.43 PM.pngPlease note with the Mobile layout: Your embed has width and height built in. width="640px" height="480px" so it will want to maintain these dimensions even for mobile layouts (this is why it pushes off the page).

    Talk soon Solenne and best wishes 🌝 Richard
  • Slider photo with woocommerce

    5
    0 Votes
    5 Posts
    31 Views
    RichardR
    Dear @cactusauvage

    This is possible but will have to be custom coded:
    https://laytheme.com/documentation.html#custom-css-styling

    Best wishes Richard
  • Change position of close-icon mobile menu

    2
    0 Votes
    2 Posts
    45 Views
    RichardR
    Dear @Olga-V

    The Class for the X-icon ( there are a few depending on container heirachy) is burger-wrap (outer) or mobile-menu-icon (inner).
    Screen Shot 2021-10-12 at 11.18.22 AM.png

    It should be noted however that the x icon (open) has the same class naming as the default (closed) burger icon:

    Open Burger:
    Screen Shot 2021-10-12 at 11.21.00 AM.png

    Closed Burger:
    Screen Shot 2021-10-12 at 11.21.08 AM.png

    To get around this we can take advantage of active class. When the burger menu opens and changes to the x-icon, the class active is added to laynav or mobile-nav.

    So you can specify to make sure you are dealing with the x-icon, E.g:

    .active .burger-wrap{ background:red; }

    or

    .active .mobile-menu-icon{ background:red; Hope this helps Olga and have a wonderful day πŸ– Richard
  • Secondary menu doesn't exist anymore?

    3
    0 Votes
    3 Posts
    18 Views
    Y

    @Richard Thanks!

  • Carousel Addon damaged.

    4
    0 Votes
    4 Posts
    35 Views
    RichardR

    Thanks @j36g2 , Have replied to your email 🌝

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