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. style buttons in menu items & navigation visible in password page

style buttons in menu items & navigation visible in password page

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

    Hello.
    Two questions here:

    1- What is the way to put the style buttons (Button 1, Button 2, Button 3) to the menu items?

    2- How I can return to the visibility to the menu and site title in a pasword page?

    Thanx a lot in advance!

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

      Hey, I think every button has a HTML class that is specific to their button.

      Could you create a text element with your buttons inside (button one, button two, button three)?

      Then we use the Chrome Inspector to see the HTML classes of these buttons.

      Screenshot 2025-04-18 at 10.00.28.png

      You see laybutton1 and laybutton classes.

      Now an appearance menu on the top right.

      Click Screen Options and then make sure the CSS Classes checkbox is checked.

      Now you can enter the HTML classes here for a menu item.
      Screenshot 2025-04-18 at 10.01.52.png

      About the password protection: I will have to create a setting to show/hide the site title and menu for it. Right now it's not possible to show them unfortunately.

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

        My reasoning behind this was I created a lay theme website and I wanted it to be hidden from the public when I put it online. I looked for a passport protection plugin, but all the plugins that I found either didn't work or came with way too many settings and ads.

        That's why I told myself, "Why don't I just password protect the page that I set as my front page?" Because I have the password protection mechanism built into Laytheme.

        But then I realized, "Oh yeah, the site title and the menu items still show up."
        If you password-protect only the front page, the other pages will still be visitable but only if you know their URLs. I changed my code to remove the markup of the site title and menu items for any pages that are password-protected.

        This way, the password protection feature can be used to password protect your whole website. If someone doesn't know all the other URLs at least.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dnlbrv
          wrote on last edited by
          #4

          Thanks for the reply. I understand why, but I'll have to find a solution. I think I'll have to somehow add a back button. Here's the link to the website where I'm having the problem:

          https://bravo.studio/notepad/

          It's in the menu items with the protection icon.

          Thanks a lot for the answers.

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

            nice website!
            yea people can still just press the browser's back button right.

            with the next update you will have this setting in Lay options, and it will be deactivated by default, so I will be back to the default behavior:

            Screenshot 2025-04-23 at 18.01.50.png

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dnlbrv
              wrote on last edited by
              #6

              Oh! Thanks a lot! You are the best :)

              1 Reply Last reply
              1
              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