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. How to make a drop-down page

How to make a drop-down page

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 160 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.
  • F Offline
    F Offline
    fredyatb
    wrote on last edited by
    #1

    How could I make a drop-down page like the one in the example:
    www.trestiposgraficos.com (work or about on the web page) In horizontal position.

    Thanks :)

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

      Dear @fredyatb

      This is customisation ( a really nice one ) that isn't offered in the regular Lay Theme options provided.

      This goes beyond my level of Forum support, you may wish to seek the aid of a developer if you are unable to create this yourself.

      However i would be happy to show you the basics of what is happening here.

      Let's take a look at "About" as an Example.

      About is a button that when clicked 'toggle's' a class off and on
      https://www.w3schools.com/jquery/eff_toggle.asp
      https://www.w3schools.com/cssref/sel_class.asp

      Screen Shot 2020-09-09 at 11.18.13 AM.png

      When clicked - the class "active-about" is added to the page

      Screen Shot 2020-09-09 at 11.18.19 AM.png

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

      The About area has always existed, but it has been hiding off to the left side of the viewport.

      • It has a width of 50% and has been sitting ( -50%) off to the left

      Screen Shot 2020-09-09 at 11.23.31 AM.png

      When the class "active-about" is added to the page, the browser receives some new CSS information that makes it visible to the viewer,
      https://www.w3schools.com/cssref/css3_pr_transform.asp

      https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate#:~:text=The translate() CSS function,element moves in each direction.

      Transform property not added:
      Screen Shot 2020-09-09 at 11.33.02 AM.png

      Clicked: Transform property added:
      Screen Shot 2020-09-09 at 11.33.14 AM.png

      The smooth gliding that occurs is due to the transition css property:
      https://www.w3schools.com/css/css3_transitions.asp

      If there were no transition it would just blink on and off the screen without the "transition".... :)

      For additional information regarding CSS:
      https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

      I hope this helps & good luck on your Lay Theme journey,

      Best Wishes
      Richard

      F 2 Replies Last reply
      0
      • RichardR Richard

        Dear @fredyatb

        This is customisation ( a really nice one ) that isn't offered in the regular Lay Theme options provided.

        This goes beyond my level of Forum support, you may wish to seek the aid of a developer if you are unable to create this yourself.

        However i would be happy to show you the basics of what is happening here.

        Let's take a look at "About" as an Example.

        About is a button that when clicked 'toggle's' a class off and on
        https://www.w3schools.com/jquery/eff_toggle.asp
        https://www.w3schools.com/cssref/sel_class.asp

        Screen Shot 2020-09-09 at 11.18.13 AM.png

        When clicked - the class "active-about" is added to the page

        Screen Shot 2020-09-09 at 11.18.19 AM.png

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

        The About area has always existed, but it has been hiding off to the left side of the viewport.

        • It has a width of 50% and has been sitting ( -50%) off to the left

        Screen Shot 2020-09-09 at 11.23.31 AM.png

        When the class "active-about" is added to the page, the browser receives some new CSS information that makes it visible to the viewer,
        https://www.w3schools.com/cssref/css3_pr_transform.asp

        https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate#:~:text=The translate() CSS function,element moves in each direction.

        Transform property not added:
        Screen Shot 2020-09-09 at 11.33.02 AM.png

        Clicked: Transform property added:
        Screen Shot 2020-09-09 at 11.33.14 AM.png

        The smooth gliding that occurs is due to the transition css property:
        https://www.w3schools.com/css/css3_transitions.asp

        If there were no transition it would just blink on and off the screen without the "transition".... :)

        For additional information regarding CSS:
        https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

        I hope this helps & good luck on your Lay Theme journey,

        Best Wishes
        Richard

        F Offline
        F Offline
        fredyatb
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • F Offline
          F Offline
          fredyatb
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • RichardR Richard

            Dear @fredyatb

            This is customisation ( a really nice one ) that isn't offered in the regular Lay Theme options provided.

            This goes beyond my level of Forum support, you may wish to seek the aid of a developer if you are unable to create this yourself.

            However i would be happy to show you the basics of what is happening here.

            Let's take a look at "About" as an Example.

            About is a button that when clicked 'toggle's' a class off and on
            https://www.w3schools.com/jquery/eff_toggle.asp
            https://www.w3schools.com/cssref/sel_class.asp

            Screen Shot 2020-09-09 at 11.18.13 AM.png

            When clicked - the class "active-about" is added to the page

            Screen Shot 2020-09-09 at 11.18.19 AM.png

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

            The About area has always existed, but it has been hiding off to the left side of the viewport.

            • It has a width of 50% and has been sitting ( -50%) off to the left

            Screen Shot 2020-09-09 at 11.23.31 AM.png

            When the class "active-about" is added to the page, the browser receives some new CSS information that makes it visible to the viewer,
            https://www.w3schools.com/cssref/css3_pr_transform.asp

            https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translate#:~:text=The translate() CSS function,element moves in each direction.

            Transform property not added:
            Screen Shot 2020-09-09 at 11.33.02 AM.png

            Clicked: Transform property added:
            Screen Shot 2020-09-09 at 11.33.14 AM.png

            The smooth gliding that occurs is due to the transition css property:
            https://www.w3schools.com/css/css3_transitions.asp

            If there were no transition it would just blink on and off the screen without the "transition".... :)

            For additional information regarding CSS:
            https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

            I hope this helps & good luck on your Lay Theme journey,

            Best Wishes
            Richard

            F Offline
            F Offline
            fredyatb
            wrote on last edited by
            #5

            @Richard-Keith big thanks!

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

              Dear @fredyatb

              Unsure of what i did, but you are most welcome! :)

              Best Wishes
              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
              StarcS
              Starc
              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