Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Pop Up Window

Pop Up Window

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 1.1k 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.
  • G
    G
    Grisid
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      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

      www.mariusjopen.world

      1 Reply Last reply
      0
      • G
        G
        Grisid
        wrote on last edited by
        #3

        hello

        thank you :)

        Could you please give me an example? I Created my text and gave it a special class. Which custom css and Js I need to add?
        I will appreaciate a help.

        Thanks in advance

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          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-javascript

          https://jsfiddle.net/d6zf0n1b/
          https://jsfiddle.net/lesson8/h4JXs/1/
          http://jsfiddle.net/cEJtA/

          https://stackoverflow.com/questions/25981198/how-to-hide-one-div-and-show-another-div-using-button-onclick/25981421

          https://www.google.com/search?q=onclick+show+another+div+jquery&rlz=1C5CHFA_enDE881DE881&oq=onclick+show+another+div+jquery&aqs=chrome..69i57j0l3.4072j0j4&sourceid=chrome&ie=UTF-8

          Hope that helps!

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • G
            G
            Grisid
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • mariusjopenM
              mariusjopenM
              mariusjopen
              Global Moderator
              wrote on last edited by mariusjopen
              #6

              Dear @Grisid

              basically:

              Button
              a div with the class called button

              Popup
              a div with the class called popup

              CSS

              .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

              www.mariusjopen.world

              1 Reply Last reply
              0

              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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              Online Users
              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