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 hide mobile menu just for one project

How to hide mobile menu just for one project

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 394 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.
  • Q Offline
    Q Offline
    qua7
    wrote on last edited by
    #1

    Hi everybody,
    I have been trying to hide the mobile menu plus mobile site title for one single project (my blog). I tried the following CSS:

    body.slug-blog .mobile-title,
    .navbar,
    .burger {
    display: none !important;
    }

    This did indeed hide title and burger, but left a blank white space which is disturbing since the background in my blog is black. Also it slightly altered the mobile menu on all other projects and pages.

    It is about this project: http://dagmarschwelle.com/blog/
    The CSS for mobile is not active at the moment because it did not work.

    Does anyone of you know a solution which would not only hide mobile title and menu but also the white space at the top?

    Many thanks!

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2
      body.slug-blog .mobile-title,
      body.slug-blog .navbar,
      body.slug-blog .burger {
      display: none !important;
      }
      body.slug-blog{
      padding-top: 0;
      }
      
      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qua7
        wrote on last edited by
        #3

        wow, works great!
        Thank you so much for your fast help @arminunruh

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FANER
          wrote on last edited by
          #4

          I have got the same issue. I try to create a subpage without the Menu.

          I just don't understand how to target that special page (I guess its slug-blog here in this case, but what should I fill in for my page)

          Looking forward, thanks.

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

            link?

            the css goes to lay options -> custom css & html

            1 Reply Last reply
            0
            • F Offline
              F Offline
              FANER
              wrote on last edited by FANER
              #6

              Hi Armin, thanks for your fast replay. where the css / html goes ist clear.

              i am just wondering what i have to type to target my special page.
              (in that case it's https://faner.de/about/)

              on qua7 's page it's .slug-blog but i've got no idea how to target my page.

              thanks a lot.

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                qua7
                wrote on last edited by
                #7

                I would say slug-about should work

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  FANER
                  wrote on last edited by
                  #8

                  oh my … thank you very much. it was to easy …

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