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. Window menu drop

Window menu drop

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 80 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.
  • C Offline
    C Offline
    calvez_calvez
    wrote on last edited by
    #1

    Hello !

    Could you explain me how the window "INFORMATION" appears like this ?
    http://www.virgilijubero.com/

    Is it only a CSS customization ?

    Thank you !

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @calvez_calvez

      I hope to give a quick answer that help's you on what i believe is occurring:

      The 'Information" text in the top right corner is actually a link to a project 'page' called information that sits in Lay Theme's primary menu:

      Screen Shot 2020-09-28 at 12.48.08 PM.png

      However this project page cannot be accessed because a class called 'disabled' has been applied to the <a> link making it not clickable - 'pointer-events:none;'

      Screen Shot 2020-09-28 at 12.36.31 PM.png

      Now hiding above the viewport and away from the user is a box called 'Contacto' containing the <p> paragraph information that displays the content:

      Screen Shot 2020-09-28 at 12.45.49 PM.png

      Here we can see that this box sits '-1000px' out of sight.

      The trick happens that when 'information' is clicked a class is added/ toggled on called "active "

      https://www.w3schools.com/jquery/html_toggleclass.asp

      This new class "active" come's with some new CSS that changes the 'top:-1000px; to 'top: 37px;

      Screen Shot 2020-09-28 at 12.45.57 PM.png

      Now "contacto" is forced into view and along with a transition for a smooth effect:
      https://www.w3schools.com/css/css3_transitions.asp

      This method requires knowledge of basic CSS and JS Added to "Lay Options - Custom CSS & JS"

      Screen Shot 2020-09-14 at 2.51.54 PM.png

      https://laytheme.com/documentation.html#custom-javascript

      Remember with JS that you must load it within a 'newpage event' to work with Lay Theme - also that the common '$' needs to be changed to 'jQuery'

      https://laytheme.com/documentation.html#custom-css-styling

      I hope this helps you @calvez_calvez and good luck! its a really cool customisation.

      have a wonderful day and thank you for using Lay Theme :)

      Sincerely
      Richard

      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
      A
      alasdair17
      W
      wyssseb
      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