• Resolved andrewlc

    (@andrewlc)


    When viewing my website on a portable device like an iPhone the WordPress bar on top moves up and then the top menu from the Spot theme stays where it is. So you end up with something like this:

    [Page ] – the width of the WordPress top bar.
    [Header ]
    [Page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter andrewlc

    (@andrewlc)

    Update:
    [Page] I meant Height of the WordPress Top/Admin Bar.
    [Header]
    [Page

    Theme Author Tim Nicholson

    (@timnicholson)

    Hmm, that pesky WordPress admin bar that insists on sitting at the very top. I think they changed the way it works where on a smartphone it inserts itself on top, but then doesn’t “stick” there.

    Thinking through how this should work, I assume most registered users would have that admin bar turned off unless they really were site admin and wanted to see it all the time.

    So we should probably go ahead and override that admin bar on smartphones to fix itself to the top, just like it does for every other browser size.

    Here’s the fix:

    @media screen and (max-width: 600px) {
        #wpadminbar  {
            position: fixed;
        }
    }

    Thanks so much for pointing this out! I’ll include the fix in the next round of updates to all my themes with fixed navbars.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Portable Bug?’ is closed to new replies.