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. Pop Up Window

Pop Up Window

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 717 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 Offline
    G Offline
    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 Offline
      mariusjopenM Offline
      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 Offline
        G Offline
        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 Offline
          mariusjopenM Offline
          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 Offline
            G Offline
            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 Offline
              mariusjopenM Offline
              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
              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
              R
              raf
              I
              Ingi
              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