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

menus

Scheduled Pinned Locked Moved General Discussion
11 Posts 2 Posters 103 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.
  • arminunruhA Offline
    arminunruhA Offline
    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 Offline
      arminunruhA Offline
      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 Offline
        L Offline
        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 Offline
          L Offline
          LDS
          wrote on last edited by
          #5

          https://leonardodesign.org/

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            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 Offline
              L Offline
              LDS
              wrote on last edited by
              #7

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

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                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 Offline
                  L Offline
                  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 Offline
                    arminunruhA Offline
                    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 Offline
                      L Offline
                      LDS
                      wrote on last edited by
                      #11

                      Yes, it did. Thank you!

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