Skip to content
  • A place to talk about anything Lay Theme related
    4k Topics
    18k Posts
    S

    Hello everybody,

    I'm trying to do something really simple that didn't work after several tries...
    I would like to have round corner for some images.
    I wrote the code in the customize css and affiliate a html class as below but the corners stayed sharp.
    rounded corner.JPG
    rounded corner.JPG

    I try with a row background, it worked.
    I apply it to all of the pictures, it worked.

    I try adding html in the gridder (as below), it works but I loose the scaling and need to add more constrain.

    rounded corner html.JPG html good.JPG

    Here is a screenshot of the inspect tool:
    inspect.JPG

    I followed and tried the tutorial "create a button style" and it didn't work either.

    Does anyone have an idea of the issue ?

    Thank you !

    Sebastien.

  • Got an idea for Lay Theme? I might include it in a new update or code an addon.
    407 Topics
    2k Posts
    P

    Hello! I would also really appreciate the possibility to browse through the projects with the arrow keys. Cheers, Paul

  • Shop related questions and issues

    203 Topics
    985 Posts
    O

    Re: how to Edit woocommerce pages texts and layouts?

    I’m facing the same issue the above post by @juan-casal

    On the Checkout page after purchasing with WooCommerce, the text overlaps, and I need to adjust the font size. As the previous poster mentioned, the Checkout page contains only the [woocommerce_checkout] shortcode after removing all HTML when installing SideCart. Since I’m not a programmer, this problem feels challenging for me. I would appreciate any tips or guidance. I’ve attached an image for reference.

    Screenshot 2024-10-15 at 8.44.27 AM.png

  • Something is not working? Please provide a screenshot, your browser name and browser version and your operating system.
    3k Topics
    13k Posts
    E

    Hey Armin,

    I didn't have the time to check in on this issue but now as I am uploading new content it is still not fixed.

    https://www.edgarberg.com/atmos-archipelago/

    Any ideas on how to get rid of it?

    Thanks in advance!
    E

  • Did you follow the steps in "How to Install" and "Troubleshooting" but still have problems? And your webhost support could not help you either? Ask here.
    287 Topics
    1k Posts
    R

    Hi Armin,

    The hover state doesn't work properly. One link is blue (as I wanted, if I do the mouseover), one stays black (like it isn't a link), and one just shows a blue part. Can you help me?

    I changed to mouseover links to blue in the 'costomizer' at 'links in text'.

    My website is: [www.reneehilhorst.com]Scherm­afbeelding 2024-10-18 om 15.34.21.png
    Kind regards,
    Renée Hilhorst

  • Got a question about an Addon?
    814 Topics
    4k Posts
    C

    The NBA's Jap and Western Convention finals may shortly be into Monday, the Boston Celtics contribute the Indiana Pacers 3-0 within just the East although the Dallas Mavericks are up 3-0 more than the Minnesota Timberwolves in just the game titles include been fairly stop. 2 of Boston's 3 wins include arrive by means of 5 details or significantly less, and 2 of Dallas' a few wins contain arrive by way of a few information or a lot Doncic includes led the Mavericks, scoring at minimal 32 details within just about every match, despite the fact that Jayson Tatum includes paced the Celtics, likely for 36 information within 2 of the a few video games. No subject Whilst All those sequence stop https://www.pacersgate.com, the NBA Finals will get started June OF THE 7 days The wins and losses aren't the just issue a single-sided; therefore are Overs. The In excess of includes strike inside all 6 online games of the Jap and Western Convention finals. The community contains been getting ease. For case in point, in just Sunday's Sport 3 among the Mavericks and Timberwolves, 84% of the bets and 83% of the economical was upon the Higher than at the BetMGM the meantime, bettors ended up all around the Underneath inside Sunday's Panthers-Rangers Match 3 within just the Stanley Cup Playoffs. With a all round of 5.5 plans, 77% of the bets and 81% of the fiscal was upon the Down below. Refreshing York gained the match 5-4 towards consider a 2-1 sequence Newgarden received the Indy 500 for the minute specifically yr upon Sunday. With +525 chances in direction of gain, they ended up the shortest probabilities of any driver within the market. Newgarden pulled in just the fourth-utmost tickets yet the maximum economical. UPSETS OF THE 7 days Davis Riley gained the Charles Schwab Problem as a result of 5 pics upon Sunday. Riley entered the party with +25000 chances toward earn and basically drew 0.2% of tickets. Moving into the occasion, he experienced only just one final-25 stop this time and experienced overlooked 7 cuts inside of 15 commences. It was his minute job PGA Excursion earn, as he teamed up with Nick Hardy in direction of earn the 2023 Zurich Conventional of Fresh new getting rid of the very first sport at residence, a lot of bettors necessary Minnesota toward acquire Activity 2 and deal with the distribute. The moment opening as 3.5-fact favorites, they shut as 5.5-truth favorites, with 65% of the bets and 72% of the monetary coming within upon the Timberwolves in the direction of address. Dallas received UP The very first tennis Grand Slam of the calendar year is underway with the French Open the females's facet, Iga Swiatek entered as a enormous favored with -155 likelihood in direction of get when using the https://www.pacersgate.com/collections/ben-sheppard-jersey event every single of the remaining 2 a long time. At the commence of the event, she was pulling inside the highest tickets and the highest dollars within the outright acquire the guys's facet, Novak Djokovic manufactured the utmost move in just pre-event betting at +350 toward gain it all. Djokovic drew the maximum tickets and the maximum Alcaraz experienced the great possibilities towards gain at the begin of the event. This column was available towards The by means of BetMGM.

  • Created a website with Lay Theme? You can share it here.
    185 Topics
    515 Posts
    arminunruhA

    wow looks amazing! great work <3

  • Find a developer who can use HTML or JavaScript or CSS to customize your Website. This is just a place to connect people and we do not take responsibility and I do not offer support for any custom coding done for you. The developers here are not part of the team working on Lay Theme.

    100 Topics
    317 Posts
    A

    Hi there !

    I am trying to add a "magnifier glass" cursor to my website, as I found the code online:
    // there is a mistake that I corrected in my code, with the function called "magniflier" instead of "magnifier"
    https://jsfiddle.net/2Blogger/00sjjfbq/

    It targets <img> but ideally I would like it to target project thumbnails (photo & if possible video). I managed to make it work on image appearing via HTML "+Shortcode", but it doesn't seems to work on image added via "+Image", or the image of "+Projects Thumbnails" // Even while they have the ".magnifier" CSS class.
    See here my test page : https://arnaudcordel.fr/test/
    // Order : +Shortcode // +Image // +Project Thumbnail

    If anyone could help me making it work, it would be so kind <3

    Here is the JS code that I edited from the original code :

    <script> jQuery(function() { var native_width = 0; var native_height = 0; var mouse = {x: 0, y: 0}; var magnify; var cur_img; var ui = { magnifier: jQuery('.magnifier') }; // Connecting to the magnifying glass if (ui.magnifier.length) { var div = document.createElement('div'); div.setAttribute('class', 'glass'); ui.glass = jQuery(div); jQuery('body').append(div); } // All the magnifying will happen on "mousemove" var mouseMove = function(e) { var $el = jQuery(this); // Container offset relative to document var magnify_offset = cur_img.offset(); // Mouse position relative to container // pageX/pageY - container's offsetLeft/offetTop mouse.x = e.pageX - magnify_offset.left; mouse.y = e.pageY - magnify_offset.top; // The Magnifying glass should only show up when the mouse is inside // It is important to note that attaching mouseout and then hiding // the glass wont work cuz mouse will never be out due to the glass // being inside the parent and having a higher z-index (positioned above) if ( mouse.x < cur_img.width() && mouse.y < cur_img.height() && mouse.x > 0 && mouse.y > 0 ) { magnify(e); } else { ui.glass.fadeOut(100); } return; }; var magnify = function(e) { // The background position of div.glass will be // changed according to the position // of the mouse over the img.magniflier // // So we will get the ratio of the pixel // under the mouse with respect // to the image and use that to position the // large image inside the magnifying glass var rx = Math.round(mouse.x/cur_img.width()*native_width - ui.glass.width()/2)*-1; var ry = Math.round(mouse.y/cur_img.height()*native_height - ui.glass.height()/2)*-1; var bg_pos = rx + "px " + ry + "px"; // Calculate pos for magnifying glass // // Easy Logic: Deduct half of width/height // from mouse pos. // var glass_left = mouse.x - ui.glass.width() / 2; // var glass_top = mouse.y - ui.glass.height() / 2; var glass_left = e.pageX - ui.glass.width() / 2; var glass_top = e.pageY - ui.glass.height() / 2; //console.log(glass_left, glass_top, bg_pos) // Now, if you hover on the image, you should // see the magnifying glass in action ui.glass.css({ left: glass_left, top: glass_top, backgroundPosition: bg_pos }); return; }; jQuery('.magnifier').on('mousemove', function() { ui.glass.fadeIn(100); cur_img = jQuery(this); var large_img_loaded = cur_img.data('large-img-loaded'); var src = cur_img.data('large') || cur_img.attr('src'); // Set large-img-loaded to true // cur_img.data('large-img-loaded', true) if (src) { ui.glass.css({ 'background-image': 'url(' + src + ')', 'background-repeat': 'no-repeat' }); } // When the user hovers on the image, the script will first calculate // the native dimensions if they don't exist. Only after the native dimensions // are available, the script will show the zoomed version. //if(!native_width && !native_height) { if (!cur_img.data('native_width')) { // This will create a new image object with the same image as that in .small // We cannot directly get the dimensions from .small because of the // width specified to 200px in the html. To get the actual dimensions we have // created this image object. var image_object = new Image(); image_object.onload = function() { // This code is wrapped in the .load function which is important. // width and height of the object would return 0 if accessed before // the image gets loaded. native_width = image_object.width; native_height = image_object.height; cur_img.data('native_width', native_width); cur_img.data('native_height', native_height); //console.log(native_width, native_height); mouseMove.apply(this, arguments); ui.glass.on('mousemove', mouseMove); }; image_object.src = src; return; } else { native_width = cur_img.data('native_width'); native_height = cur_img.data('native_height'); } //} //console.log(native_width, native_height); mouseMove.apply(this, arguments); ui.glass.on('mousemove', mouseMove); }); ui.glass.on('mouseout', function() { ui.glass.off('mousemove', mouseMove); }); }); </script>

    I tried adding this JS to make sure every <img> has the magnifier class

    <script> window.laytheme.on("newpageshown", function(){ jQuery("img").addClass("magnifier") }); </script>

    Here is the CSS of the ".glass" element that I edited from the original code, to my design

    .glass { width: 70px; height: 70px; position: absolute; border-radius: 50%; cursor: crosshair; /* Multiple box shadows to achieve the glass effect */ box-shadow: inset 0 0 40px 2px rgba(0, 0, 0, 0.25); display: none; }

    Thanks a lot for any help of tips,
    A.

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