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. hide specific menu from specific page

hide specific menu from specific page

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 447 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.
  • E
    E
    emresenoglu
    wrote on last edited by
    #1

    hey all - i'm trying to hide specific menus from certain pages. for example i would like to hide third menu from all my project pages, and also to interchangeably hide primary and fourth menus depending on what page it is: if i am on the clients page then hide fourth menu and if i am on about page then hide the primary. this might sound confusing - what i'm ultimately trying to achieve is to have alternating menus showing the active page at the topright corner. i've seen that this can be done with css, however i couldn't see how to hide only one menu at a time.

    here's my page as it is: https://www.senoglu.co/
    many thanks!

    senoglu.co // archimats.com // imgemim.com // hakiurla.com

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

      sure no problem

      basically you check what id or what slug your body has.
      google "how to use google chrome inspector to find a HTML class"

      image.png

      check out the classes of your menus:

      9e8ae3af-8fb2-4028-91e2-6889c35d296a-image.png

      read this please:

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

      so it would be for example:

      body.slug-home-2 .second_menu{
      display: none;
      }
      

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

      that would hide the second menu on the page that has a slug of home-2

      if for example you want to hide one menu for all project pages, use:
      de69d0d5-fd03-443e-88e5-d483ea98ea09-image.png

      body.type-project .second_menu{
      display: none;
      }
      
      1 Reply Last reply
      1
      • E
        E
        emresenoglu
        wrote on last edited by emresenoglu
        #3

        fantastic thanks a lot armin!! i will give this a try. keep on the good work.

        *edit. works perfectly thank you very much.

        senoglu.co // archimats.com // imgemim.com // hakiurla.com

        1 Reply Last reply
        1

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