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 header (with menu and site title) on landing page

Hide header (with menu and site title) on landing page

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 117 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.
  • B Offline
    B Offline
    Bastion
    wrote on last edited by
    #1

    Hi,
    on my landing page www.archphot.com I would like to permanently hide the header on desktop and mobile.

    I tried it with CCS

    .page-id-260 header {
      display: none;
    }
    

    but didn't precisely know where and how to put it.
    At least it didn't work.

    Any suggestions?

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

      Do you mean you want to hide your site title and menu on your front page?

      body.id-260 .laynav,
      body.id-260 .sitetitle{
      display: none!important;
      }
      

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

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

        You can always find out the correct selectors for CSS by right-clicking on the menu or right-clicking on the site title and clicking "Inspect element" on Chrome.

        Cuz there is no HTML element called header that contains the site title and menu.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bastion
          wrote on last edited by
          #4

          It's the landing page of a photographers page, so I want there just to be an image, nothing else, no menu, no site title. Tried your CCS, shows two mistakes in line 1 (newline character found in selector) and in line 3 (use of ! important). Unfortunetaly I don't understand CCS language, so I am dependant on other peoples scripts ...

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

            you can ignore those! but does the css work?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bastion
              wrote on last edited by
              #6

              No, doesn't work ...

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

                Can you please send:

                • a link to this forum topic
                • your website address
                • /wp-admin/ username and password
                  to: info@laytheme.com
                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bastion
                  wrote on last edited by
                  #8

                  Sure. Thanks for helping out!

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

                    we had forgotten a comma. i corrected the css above.

                    for mobile:

                    body.id-260 .mobile-title,
                    body.id-260 .mobile-nav{
                        display: none!important;
                    }
                    

                    Enter this css in "lay options" -> "custom css & html" -> "custom css for mobile"

                    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