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

hide specific menu from specific page

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 64 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.
  • E Offline
    E Offline
    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

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      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 Offline
        E Offline
        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

        1 Reply Last reply
        1
        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
        L
        luziaconzeta
        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