Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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. keep site title and navigation showing with lightbox feature

keep site title and navigation showing with lightbox feature

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 75 Views
  • 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.
  • Y Offline
    Y Offline
    yelmarb
    wrote on last edited by
    #1

    Hey @arminunruh

    I love the lightbox add on feature but I would like to keep the site title and navigation showing, but still have the grid opacity work.

    Could this be done with some CSS code?

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2
      .sitetitle, .laynav{
      z-index: 999!important;
      }
      

      Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yelmarb
        wrote on last edited by
        #3

        That's perfect, thank you so much Armin!

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yelmarb
          wrote on last edited by yelmarb
          #4

          If anyone needs the mobile CSS code its:

          .mobile-title, .lay-mobile-icons-wrap{
          z-index: 999!important;

          }

          1 Reply Last reply
          1
          • Y Offline
            Y Offline
            yelmarb
            wrote on last edited by
            #5

            Hey Armin, 2 questions for you:

            I would like to have some padding for the lightbox so the image doesn't overlay the menu. So far I have come up with this:

            body.lightbox-css-on #lightbox-region {
            padding-top: 30px
            }

            However, this pushes the Lightbox down the page and the bottom of the image is then off center.

            What's the best way to keep the Lightbox with 30px of top AND bottom padding but still keeping 100% width?

            Also, where's your tip jap / buy me a coffee / patreon??

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

              i have a paypal :D

              armin.unruh@gmail.com

              please dont send more than 5€, this support here is included in the price of lay theme ^^

              if you want me to do more extensive programming for a website, like you need many customizations or even custom lay theme elements, you can write an email to me and i can create a cost estimate

              doing this is a little tricky. because the size of the image is calculated with javascript to have the right space at the top and bottom.
              however, what you could try is this css which simply scales down the image while the space at the bottom should remain the same:

              #lightbox-region .swiper-slide img{
              transform: translate(-50%, calc(-50% + 20px)) scale(0.8)!important;
              }
              

              you can play around with 20px and 0.8

              for different sizing and positioning

              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

              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
              A
              alasdair17
              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