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. Mobile settings for margins not registering

Mobile settings for margins not registering

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

    Hello - I am trying to customize margins for mobile browser. However none of my settings are registering - for example editing the Main Menu Top Frame % to 20% in the customizer returns no results - the menu floats to the top of the page as if margin top was set to 0. The only wait it moves further down the page is if the menu bar is revealed.

    Furthermore - editing the mobile browser margins for pages + categories does not return any results either. I've edited the gridder defaults for both desktop + mobile versions + edited each page's mobile version margins to no result.

    Is anyone else having this issue with mobile settings not registering?

    Thanks!

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

      Dear @comedowntous
      Can you post a link to our website?
      Then we can have a look and inspect that.

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • C Offline
        C Offline
        comedowntous
        wrote on last edited by
        #3

        Thanks! — agentandartist.co

        I have also tried to center text in the /artists page to no success. I gave the link a class and tried to apply custom css - after inspecting it with developer tools I verified the browser was able to register this however there were no changes in position.

        Is there a way to override this with !important!?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          comedowntous
          wrote on last edited by
          #4

          Example - the /artists page:

          There is a link here which I would like centered across different media sizes -

          In the gridder

          <p class="_Default" style="text-align: center;"><a class="artist-link" href="/linkname"><span style="color: #000000;">LINK NAME</span></a></p>
          

          Cudtom CSS

          .artist-link:link {
              width: 60%;
              left: 20%;
              position: absolute;
              text-align: center;
              top: 0;
          }
          
          1 Reply Last reply
          0
          • mariusjopenM Offline
            mariusjopenM Offline
            mariusjopen
            Global Moderator
            wrote on last edited by
            #5

            Dear @comedowntous
            the page appears blank here.

            Try this instead:

            .artist-link {
                width: 60%;
                left: 20%;
                position: absolute;
                text-align: center;
                top: 0;
            }
            

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            0
            • C Offline
              C Offline
              comedowntous
              wrote on last edited by
              #6

              Thanks - The site is back up now, I'm still having trouble with the menu on mobile. None of my position settings seems to be registering and the menu links are fixed to the top of the page above the site title.

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

                Dear @comedowntous
                you can use CUSTOM CSS:

                .laynav.mobile-nav {
                    margin-top: 20px;
                }
                

                That should do the job!

                Best!

                Marius

                www.mariusjopen.world

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  comedowntous
                  wrote on last edited by
                  #8

                  @mariusjopen said in Mobile settings for margins not registering:

                  .laynav.mobile-nav {
                  margin-top: 20px;
                  }

                  Thank you! - this works at placing the menu at a fixed position on mobile. However when the phone is switched to landscape format the menu then overlaps with the sitetitle, any way to work around this?

                  Also any way I can center the #grid across all pages - the page content div on mobile is not centered/fixed and so it floats to overlapp with navigation at the top of the page.

                  Thanks again!

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

                    Dear @comedowntous
                    have a look into media-queries for CSS.

                    There you can play around with the browser size for CSS.

                    Best!

                    Marius

                    www.mariusjopen.world

                    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