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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login