Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Overlay problem

Overlay problem

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 52 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 5 Offline
    5 Offline
    5a5uke
    wrote on last edited by
    #1

    Hi everyone,
    I've posted this already and bug reports, but I hope someone here might have an idea how to help me, so I'm posting it again:


    I'm currently working on the following website for a customer:
    https://2026.preciflex.com/

    I have a problem with the Overlay function. In the menu, I have a contact button, which opens an overlay to a contact form. In my footer, I have another button to the same link, which should also open the overlay, but instead it opens the contact form regularly. It also doesn't work if I put a regular link on the main body of the side.

    Additionally, I wanted to work on this page:
    https://2026.preciflex.com/expertise-wip/

    Here I wanted to put grid of buttons, which should all open a different overlay, but I have here the same problem as before. For now I only created the overlay page for "Micromechnics". Does anyone of you know what I'm doing wrong or what I can do to make it work?

    I hope someone has some helpful advice. All the best and have a beautiful rest of the week!

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      hello!

      image.png

      do you mean this button?
      for me it does open the contact form in an overlay.

      if you create anchors in HTML yourself to open overlays.
      you need to make sure they contain the correct data- attributes.

      for example. a link on lay theme to a internal page usually looks like this:

      <a href="https://2026.preciflex.com/about-us/" data-id="708" data-type="page" data-title="ABOUT US"><span>ABOUT US</span></a>

      it contains data-id and data-type

      the code that check if a page should be open as an overlay only works when the data-id and data-type attributes are present

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        i think you did quite a great job with custom code on this website.
        are you a programmer?

        would you be interested in me showing you a way to create custom lay theme elements? basically, its possible to create a wordpress plugin for lay theme.

        and then using cmb2 and some filters, its possible to create custom lay elements:

        image.png

        for example for this one client site i created more than 20 custom elements

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        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
        Online Users
        K
        kimetartsgodella
        M
        max_schm
        Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
        laytheme.com
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search