Skip to content

General Discussion

A place to talk about anything Lay Theme related
4.9k Topics 20.9k Posts
  • Project INdex > Active TEXT Color

    10
    0 Votes
    10 Posts
    380 Views
    P
    It worked like magic, thanks a lot!
  • changing menu bar color on a specific page

    8
    0 Votes
    8 Posts
    566 Views
    arminunruhA
    try this this makes all menubars of project pages black: body[data-type="project"] .navbar { background-color: black!important; } similarly you can do: body[data-type="page"] .navbar { background-color: green!important; } which makes all "pages" menubars green
  • How to script execution on all project pages

    4
    0 Votes
    4 Posts
    129 Views
    arminunruhA
    hey please dont insert jquery, its already inserted!, so remove this: <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> please read this on how to do something when a new page is loaded: https://laytheme.com/documentation/custom-javascript.html#newpage-events we have a custom javascript event window.laytheme.on("newpageshown", function(){ the onload event will only trigger one time, instead of every time you go to another page IF your website doesnt do a hard reload on navigation but instead uses the default ajax way of navigating your website uses the normal ajax navigation this is how i would do it. on newpageshown, it checks if the page is a project or not. if it is, it hides the star. if its not a project it shows the star and moves it. <script> window.laytheme.on("newpageshown", function(){ if(jQuery('body').attr('data-type') == 'project'){ jQuery('#logo').hide(); } else { jQuery('#logo').show(); move(); } }) function move() { let img = document.getElementById('logo'); let imgWidth = img.width; // Récupère la largeur actuelle de l'image let imgHeight = img.height; // Récupère la hauteur actuelle de l'image // Calcule les positions aléatoires en tenant compte des dimensions de l'image let maxX = window.innerWidth - imgWidth; // Position horizontale maximale let maxY = window.innerHeight - imgHeight; // Position verticale maximale // Déplace l'image dans un emplacement aléatoire mais dans les limites de la fenêtre img.style.left = Math.floor(Math.random() * maxX) + "px"; img.style.top = Math.floor(Math.random() * maxY) + "px"; } </script> you may also want to use this css #logo{ pointer-events:none; } this way you can click things that are behind the star
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Next Project Link skipping projects

    3
    0 Votes
    3 Posts
    99 Views
    J
    That did it. Thank you very much.
  • remove rounded corners for row background images

    3
    0 Votes
    3 Posts
    148 Views
    R
    @alasdair17 Thanks, it works! Looks like I had the "img" and class the wrong way around... Cheers :)
  • Pagespeed performing much slower on mobile

    10
    3
    0 Votes
    10 Posts
    239 Views
    A
    @Hayo-Gebauer Great stuff!
  • change color of textbox - general setting

    3
    1
    0 Votes
    3 Posts
    137 Views
    D
    @felix_rabe exactly that's what I thought as well. seems it was a bug and is fixed now. thanks.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Media library folder plug in

    2
    0 Votes
    2 Posts
    99 Views
    A
    hey, yep filebird works well with laytheme, you can create folders and sub folders for your media items. It is free but the paid version allows you to see the sub folders when you are uploading/modifying images to the gridder.
  • full screen gradient

    3
    0 Votes
    3 Posts
    169 Views
    D
    thanks so much @felix_rabe !
  • How to make horizontal and vertical images in Carousel have the same size

    12
    0 Votes
    12 Posts
    403 Views
    J
    thank you very much! It now works perfectly! Have a good day
  • link in footer jumps on hover

    7
    0 Votes
    7 Posts
    156 Views
    arminunruhA
    cause its position: fixed; its css MAYBE
  • Custom css for backend editor

    6
    0 Votes
    6 Posts
    266 Views
    arminunruhA
    ok very good
  • How to make row background transparent

    8
    0 Votes
    8 Posts
    238 Views
    arminunruhA
    i changed my first css that i posted at first. it seems like it made too many things transparent. ^^
  • advice for captions between desktop and mobile

    5
    0 Votes
    5 Posts
    207 Views
    A
    @felix_rabe Perfect, thank you so much again!
  • new row Grid not showing on desktop (works on mobile)

    2
    0 Votes
    2 Posts
    48 Views
    arminunruhA
    i dont understand what you mean do you have a link you mean you add a new row and it doesnt show?
  • Gridder: Column width

    8
    0 Votes
    8 Posts
    260 Views
    arminunruhA
    oh i understand. are you using the "place freely" method of placing elements? https://laytheme.com/documentation/place-freely.html
  • Link image with a category link doen't work :(

    7
    0 Votes
    7 Posts
    144 Views
    M
    @arminunruh It works! Thank you so much 🤍
  • Problem with mobile menu

    3
    0 Votes
    3 Posts
    73 Views
    arminunruhA
    you mean the submenu? if u update now this should be fixed sorry about that!

I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com

Our Web Development company: 100k.studio

Want to tip me? https://www.paypal.com/paypalme/arminunruh

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