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. menus

menus

Scheduled Pinned Locked Moved General Discussion
11 Posts 2 Posters 1.5k Views 2 Watching
  • 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.
  • L
    L
    LDS
    wrote on last edited by
    #1

    Hi there! Is it possible to have two menus on my site? One for the homepage with three items, and two for all the others?

    I know that I can create two menus, but I struggle to understand how to allocate them to two page categories. Home and Project page.

    My coding skills are a bit rusty and limited.

    Thank you!

    1 Reply Last reply
    0
    • arminunruhA
      arminunruhA
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      you mean you have 2 menus.
      but you want to show one only on the homepage.
      and the other one on the other pages.

      add this in:
      lay options -> custom css & html -> custom css for desktop

      /* hide first menu by default */
      nav.primary{
      display: none;
      }
      /* show first menu on home */
      body.slug-home{
      display: block;
      }
      /* hide second menu on home */
      body.slug-home nav.second_menu{
      display: none;
      }
      

      i use the selector:
      body.slug-home

      for the homepage. this may be different for you!
      slug-**

      where

      ** can be a different word for you.

      when u edit your page, you can see the slug:
      ccbece53-5fce-491c-b65b-853ffddc1e0e-image.png

      its basically your title of the page but with lowcaps and without spaces or special signs

      1 Reply Last reply
      0
      • arminunruhA
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        if this doestn work i'd need your website address so i can check it out

        1 Reply Last reply
        0
        • L
          L
          LDS
          wrote on last edited by
          #4

          Hey, thank you for this.

          I don't seem to find the slug. The two menus are active and placed on top of each other, and the home page has an extra item, "Work", which is a custom link that scrolls further down to the beginning of the projects. The menu with two items should appear on all the other pages. I hope it makes sense! Thank you so much, Leonardo.

          1 Reply Last reply
          0
          • L
            L
            LDS
            wrote on last edited by
            #5

            https://leonardodesign.org/

            1 Reply Last reply
            0
            • arminunruhA
              arminunruhA
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              oh

              `

              /* hide first menu by default */
              nav.primary{
              display: none;
              }
              /* show first menu on home */
              body.slug-home nav.primary{
              display: block;
              }
              /* hide second menu on home */
              body.slug-home nav.second_menu{
              display: none;
              }
              

              this css should work instead of the other one i posted
              i made a mistake with the other css, something was missing

              1 Reply Last reply
              0
              • L
                L
                LDS
                wrote on last edited by
                #7

                Thanks for this, unfortunately, it isn't working again.

                1 Reply Last reply
                0
                • arminunruhA
                  arminunruhA
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #8

                  Hello! It seems to me that at the moment you configured Lay Theme to only have one menu. Cause in the markup I can see that the first menu exists, but I don't see the second menu.

                  I think my code should work. If you want to, you can send your WP admin login info, and I'll just try to make it work in there.

                  can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

                  1 Reply Last reply
                  0
                  • L
                    L
                    LDS
                    wrote on last edited by
                    #9

                    Hello! I activated both menus on the site.
                    Regarding the code, I receive the following warning: see the attachment.
                    Screenshot 2025-07-22 at 09.00.52.png

                    I will send you my WP admin and login info to the info email.

                    Thank you so much
                    L
                    Thank you!

                    1 Reply Last reply
                    0
                    • arminunruhA
                      arminunruhA
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #10

                      ok so you wrote me an email that you made it work somehow. im glad it worked for you!

                      1 Reply Last reply
                      0
                      • L
                        L
                        LDS
                        wrote on last edited by
                        #11

                        Yes, it did. Thank you!

                        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
                        L
                        lukas123
                        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