style buttons in menu items & navigation visible in password page
-
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!
-
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.
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.
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.
-
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.
-
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:
It's in the menu items with the protection icon.
Thanks a lot for the answers.
-
-
Oh! Thanks a lot! You are the best :)
1/6
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it