Pop Up Window
-
Hello,
Is there any possibility to add a pop up window in order to add additional text of a project?
I mean just like in my "+ details" section of my website:
https://www.griseldaduch.com/fleuressence/
Thanks in advance
-
Dear @Grisid
oh wow! Great flowers!
You can create a textbox and give it a special class. With CUSTOM CSS and JS, you can make it look and behave how you want.best!
Marius
-
Dear @Grisid
then you need to create a button and hive it a class as well. Call it button.Then you can use jQuery to display and show the other box when you click on the button.
See here under Binding Click Events:
https://laytheme.com/documentation.html#custom-javascripthttps://jsfiddle.net/d6zf0n1b/
https://jsfiddle.net/lesson8/h4JXs/1/
http://jsfiddle.net/cEJtA/Hope that helps!
Best!
Marius
-
Hello,
I created a button called "clickme".
Then I added in my Css desktop and mobile this:.clickme a{
padding: 15px 20px;
display: inline-block;
background-color: #e8e8e8;
border-radius: 3px;
line-height: 1;
text-decoration: none;
border-bottom: none;
color: black;
opacity: 1;
white-space: nowrap;
}.clickme a:hover{
background-color: #f0f0f0;
text-decoration: none;
border-bottom: none;
color: black;
opacity: 1;
}Then I added jQuery to display and show the other box when you click on the button, just like that:
<script>
jQuery(document).on("click", ".clickme", function(event) {
console.log("yay!");
});
</script>but I'm sure something is wrongg because when I want to click "+ more details" (which is my button with custom ID class called "clickme")
https://www.griseldaduch.com/fleuressence
there is no link to click.
What I'm doing wrong?
-
Dear @Grisid
basically:
Button
a div with the class called buttonPopup
a div with the class called popupCSS
.popup { display: none; } .popup.active { display: block !important; }
Javascript
jQuery(document).on("click", ".button", function(event) { jQuery('.popup').toggleClass('active'); });
I did not test it, but that is the way to go!
Best!
Marius
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