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 menu bar from home page only

Hide menu bar from home page only

Scheduled Pinned Locked Moved General Discussion
12 Posts 5 Posters 1.4k 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.
  • M Offline
    M Offline
    morgeorgeremy
    wrote on last edited by
    #1

    Hey everyone !

    I'm actually trying to get rid of the menu on my home page from my website
    https://morganremmy.com

    I actually managed to do it with that custom CSS below
    .slug-home #menu-item-534 { display:none; }

    But overtime I get back to my home page from a project the content is disappearing
    Is anybody's got an idea to avoid that issue ?

    Thanks

    Morgan

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Hi @morgeorgeremy

      Do you have Wordpress and Laytheme updated with the newest version?

      The whole content of the home pages disappears sometimes? I was not able to find this error.

      Which browser do you use?

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • M Offline
        M Offline
        morgeorgeremy
        wrote on last edited by
        #3

        Hello @mariusjopen

        Thank you for your reply. My version of Laytheme is now up to date.

        I actually replaced the home page so it doesn't crash anymore. I'm now looking for the proper code to type in the CSS custom field in order to make the menu disappear from my home page.
        I'm actually using both safari and google chrome
        Do you have any idea on how to do it ?

        Thank you very much.

        Morgan

        1 Reply Last reply
        0
        • M Offline
          M Offline
          morgeorgeremy
          wrote on last edited by
          #4

          Okay I just corrected the problem. That was an issue with my thumbnails.
          But I'm still trying to hide the menu

          1 Reply Last reply
          0
          • M Offline
            M Offline
            morgeorgeremy
            wrote on last edited by
            #5

            Okay I finally found how to do it ! Problem solved !!

            Thanks anyway @mariusjopen ;)

            Have a great day

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Hi @morgeorgeremy
              :-)

              Yes!

              I am happy our managed it!

              Have a beautiful day!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rioma7
                wrote on last edited by
                #7

                How did you do? Cannot find Marius' suggestion...

                1 Reply Last reply
                0
                • RichardR Offline
                  RichardR Offline
                  Richard
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear @rioma7

                  What are you trying to achieve? are you trying to make your menu disappear?

                  Could you post a link to your website if possible? :)

                  Best wishes and have a wonderful day

                  Sincerely
                  Richard

                  R 1 Reply Last reply
                  0
                  • RichardR Richard

                    Dear @rioma7

                    What are you trying to achieve? are you trying to make your menu disappear?

                    Could you post a link to your website if possible? :)

                    Best wishes and have a wonderful day

                    Sincerely
                    Richard

                    R Offline
                    R Offline
                    rioma7
                    wrote on last edited by
                    #9

                    @Richard-Keith Dear Richard,

                    I have the menu bar on my website but, I don't want to have it on my homepage. that's it. Actually, I cant share the website cause is not published yet. Is this a problem?

                    best

                    1 Reply Last reply
                    0
                    • RichardR Offline
                      RichardR Offline
                      Richard
                      Global Moderator
                      wrote on last edited by
                      #10

                      @rioma7

                      Each page has its own 'slug' which we can use to target it specifically.

                      You will need some basic knowledge of CSS and we will be adding Custom CSS within 'Lay Options - Custom CSS & HTML:

                      Screen Shot 2020-09-14 at 2.51.54 PM.png

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

                      Within this link you will find information on the 'Developer tools' - you will need to right-click & 'inspect' your homepage.

                      Here i have inspected my home page:
                      Screen Shot 2020-11-27 at 5.07.02 PM.png

                      and found in the opening <body> tag a series of classes, One of them is called : slug-work

                      So in the 'Custom CSS' area at the top of our Custom CSS & HTML page within Lay Theme's Backend i would add code similar to this:

                      .slug-work .laynav{
                          display:none; 
                      }
                      

                      You must replace the '.slug-work' with the correct slug of your homepage, keeping the .laynav

                      I hope this helps, let me know how you go & Good luck! :)

                      Best
                      Richard

                      P 1 Reply Last reply
                      0
                      • RichardR Richard

                        @rioma7

                        Each page has its own 'slug' which we can use to target it specifically.

                        You will need some basic knowledge of CSS and we will be adding Custom CSS within 'Lay Options - Custom CSS & HTML:

                        Screen Shot 2020-09-14 at 2.51.54 PM.png

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

                        Within this link you will find information on the 'Developer tools' - you will need to right-click & 'inspect' your homepage.

                        Here i have inspected my home page:
                        Screen Shot 2020-11-27 at 5.07.02 PM.png

                        and found in the opening <body> tag a series of classes, One of them is called : slug-work

                        So in the 'Custom CSS' area at the top of our Custom CSS & HTML page within Lay Theme's Backend i would add code similar to this:

                        .slug-work .laynav{
                            display:none; 
                        }
                        

                        You must replace the '.slug-work' with the correct slug of your homepage, keeping the .laynav

                        I hope this helps, let me know how you go & Good luck! :)

                        Best
                        Richard

                        P Offline
                        P Offline
                        peti-peti
                        wrote on last edited by
                        #11

                        @Richard-K

                        Hi Richard, thank you for your profound reply.
                        If I want to hide the complete navigation on a certain page do I need to address every single class or is there a main class (up to now I couldn't figure it out).
                        It works already with:

                        .slug-startseite .laynav{
                        display:none;
                        }
                        .slug-startseite .sitetitle img{
                        display:none;
                        }
                        .slug-startseite .navbar{
                        display:none;
                        }

                        but there must be sth more elegant.

                        Cheers
                        Peter

                        1 Reply Last reply
                        0
                        • RichardR Offline
                          RichardR Offline
                          Richard
                          Global Moderator
                          wrote on last edited by
                          #12

                          Dear Peter @peti-peti

                          Yeah sure :)
                          You would target the highest parent of the heirachy and all its descendants will inherit that CSS :)

                          Things like 'site title' and a solid 'navbar' you can turn off in 'Customise' in the Wordpress admin bar (left bar)
                          You may also have a 'padding-top' that you can change within Laytheme's Options'

                          So we would target the specific page like you have done:

                          .slug-startseite 
                          
                          

                          Then i believe you want the highest parent which would be 'laynav' but also on mobile a Burger menu would appear so:

                          .slug-startseite .laynav, .burger-wrap {
                              display:none;
                          }
                          

                          Let me know how that goes for you Peter, or if i answered your question correctly and have a wonderful day :)

                          Best
                          Richard

                          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