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 Site Title for Mobile

Hide Site Title for Mobile

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 608 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.
  • S Offline
    S Offline
    sebastianpetrov
    wrote on Jan 25, 2018, 6:48 AM last edited by
    #1

    Hello,

    I would like to hide the site title and navigation in the mobile layout.

    The code I am using in the "custom css for desktop version" works as expected.

    The same code used in the "custom css for mobile version" successfully hides the navigation but not the site title. Could you please help me with this?

    Link to example page: http://sebastianpetrovski.com/mands

    Code pasted below....

    /* mands /
    /
    site title /
    body.slug-mands .sitetitle.txt .sitetitle-txt-inner span{
    display: none;
    }
    /
    navigation */
    body.slug-mands nav.primary a{
    display: none;
    }

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Jan 26, 2018, 6:20 PM last edited by
      #2

      Hi @sebastianpetrov
      try to add this to your custom CSS mobile section:

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

      I hope that works!

      Many wishes!

      Marius

      www.mariusjopen.world

      S 1 Reply Last reply Jan 30, 2018, 3:56 PM
      0
      • M mariusjopen
        Jan 26, 2018, 6:20 PM

        Hi @sebastianpetrov
        try to add this to your custom CSS mobile section:

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

        I hope that works!

        Many wishes!

        Marius

        S Offline
        S Offline
        sebastianpetrov
        wrote on Jan 30, 2018, 3:56 PM last edited by
        #3

        Hi @mariusjopen

        Thank you! It works, I would like to target specific pages - how can I do this?

        For example my info page has the slug "info" but if I prepend ".slug-info," to the code it still applies "display: none" site wide.

        Best,

        Sebastian

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Jan 30, 2018, 5:28 PM last edited by
          #4

          Hi @sebastianpetrov

          you need to put it in front of every line:

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

          Let me know if that worked out!

          Best!

          Marius

          www.mariusjopen.world

          S 1 Reply Last reply Jan 30, 2018, 6:00 PM
          0
          • M mariusjopen
            Jan 30, 2018, 5:28 PM

            Hi @sebastianpetrov

            you need to put it in front of every line:

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

            Let me know if that worked out!

            Best!

            Marius

            S Offline
            S Offline
            sebastianpetrov
            wrote on Jan 30, 2018, 6:00 PM last edited by
            #5

            Hi @mariusjopen

            Thank you - perfect!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes

            1/5

            Jan 25, 2018, 6:48 AM


            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.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search