Jump to content
mattpato

Issue With "Fixed" Nav Bar On Mobile Devices

Recommended Posts

mattpato    0
mattpato

Hi, 

I have been trying to fix this for a while now and have had no success. 

 

I have the fixed navigation bar activated on the site, however when you open up the site on a mobile for example on an iPhone and zoom in on the page, the "Fixed" nav is not fixed at all and ends up taking up 80% of the screen blocking the content. 

 

Here is my site: www.ijailbreakthis.com 

 

I have added no custom CSS to the fixed nav, so not sure what is going on. 

 

Please help, thanks in advance. 

Cheers, 
Matthew 

 

 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Matthew

 

The site seems to be set to responsive in the layout editor, the entire page is acting responsivly except for the div labelled 'my-add-image'. Has this been added as a hook? If so you'll need to make sure the media is added so it acts responsively (using a % width rather than a static px width) so it resizes with the screen. The navbar seems to be moving in line with the full width of the content, its the add above which is keeping the page at a larger size. 


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Sorry, that just confused me... could you explain to me again what I need to do? 

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

I have added :

 

.top_ad{
width: 100%;
}
 

 

But the fixed nav is still not working right. 

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Even if the div labelled 'my-add-image' is removed the top fixed nav still does not work correctly. 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi,

 

I just looked at your site on an Android (Samsung Galaxy SIII), and zoomed in and out.  The fixed nav did not occupy any more space than it should. So I suspect that it needs some browser specific CSS.   We have a free plugin for that called Browser Specific CSS found at Dashboard > PageLines > Store > Plugins > Top Free.

 

I did take note that after zooming back, the fixed nav bar did shift to the right, remaining there, but it did not block any content. The problem I noticed with that is simply that the navigation disappeared off the fixed nav.  This could be the result of some custom CSS or a plugin conflict.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Thanks for the comments, I have just tested on an iPad and the fixed nav is perfect (zoomed and normal). It just seems to be iPhone?

 

What specific CSS do I need to add? 

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Yeah I have it installed, but I can find what I need to know. To be honest I am not even sure what I am looking for. 

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Thanks I found that, but what I am saying is that I am not sure what needs to be added to make the fixed nav stop doing this. We have figured out that it seems to be effecting the iPhone only, so it needs a .iphone css class adding but what needs adding before it? 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Honestly, I have no idea.  Do you use Firebug for Firefox or Chrome's Inspection Tool? Either of those should point you to the element that needs a solution.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Yes I have it and am using it, however still have no idea what CSS code is needed to prevent this. 

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Getting to the point now where the fixed nav is becoming more hassel than it is worth. What is the reason that it is doing this, have others had the same issue? 

Share this post


Link to post
Share on other sites
Rob    547
Rob

I haven't seen this issue come up before.  It could be a plugin conflict or a conflict with CSS (either custom or from a plugin).  It's very hard to tell.  I'd recommend deactivating your non-PageLines plugins, to see if the issue resolves.  Reactivate each, one at time, checking after each reactivation if the problem recurs. When it does, the last activated plugin is the problem.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

I have deactivated all plugins and it is still an issue... grrr. 

Share this post


Link to post
Share on other sites
Rob    547
Rob

I will alert our developers to see if they can identify the issue. Thanks for your patience.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

No worries, if you could please keep me in the loop and let me know where we are and if you need me to do anything. If you try to write a comment on a post the fixed nav drops down to the comment field and wont go away! 

Share this post


Link to post
Share on other sites
Rob    547
Rob

As soon as the developers have a chance to read through this thread, they'll either reply directly or answer me.  Either way, you'll be kept in the loop. Meanwhile, don't deactivate it, so they can see what it's doing.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Thanks, have we managed to get anywhere with this yet?

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Hi guys, could someone please fill me in with any developments? 

Share this post


Link to post
Share on other sites
James B    436
James B

Evening, I've checked with Rob for you, he's not heard back from the developer team yet though.

 

Checking your site this evening the navbar seems to be stretching the full width of the site now on the iphone. http://screencast.com/t/nD9fMa7U

 

Even when zoomed in I'm seeing it stretch right out to the edges of the screen - http://screencast.com/t/FCRA9kPr

 

I can't see that div with the 'my-add-image' id anymore, did removing that resolve the layout?


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Hi thanks for checking back in. 

 

I have removed the fixed nav and replaced it with SaleBar for now. However when you try to write a comment on one of the blog posts the fixednav/sale bar still drops off and gets stuck in the comments box... see image > http://www.screencast.com/t/gGP0ujP1wK

 

This also happens with the fixed nav. 

 

Removing the 'my-add-image-' has played no effect at all. 

 

Cheers. 

Share this post


Link to post
Share on other sites
James B    436
James B
Hi there, ok I can see it happening in the comments box on the iphone. It's strange as I 
can't get it to replicate on mine. 

Try using the below css to see if this will force the width and edit the font size on the 
iphone to get it to fit all in one line full width. 

/* iPhone [portrait + landscape] */

@media only screen and (max-device-width: 480px)

{ .pl-salebar .sale-text {font-size: 9px;} }

 

/* iPhone [portrait + landscape] */

@media only screen and (max-device-width: 480px)

{ .pl-salebar {width:100% !important;} }

 

Let us know if that has any effect.

 


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
mattpato    0
mattpato

Hi thanks for this, I have added the above CSS and it seems to have improved the zoom issue a little however the problem with the comments is still happening. 

 

Fixed nav drops off and gets stuck there when you try to write a comment. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
    • Jason
      By Jason+
      Feel free to delete this post if its not helpful or its just plain wrong.
       
      I though it might be useful to share how I customize the size of the builder. (reduce my eyestrain )
      1 - install stylerbot extension in chrome (stylerbot keeps this css every time you access the url)
       
      2- add this css to stylerbot for the site you are working on
      .CodeMirror {
          font-size: 14px;
          height: 600px;
      }
      .pl-workarea.pl-has-sidebar .pl-workarea-sidebar-container {
          right: 0px;
          width: 500px;
      }
      .pl-workarea.pl-has-sidebar .iframe-container {
          right: 500px ;
      }
       
      change sizes to suit.
       
      Cheers.
    • Jason
      By Jason+
      Hi.
      I can't seem to get the Teamwork section to accept custom css. I am trying to change the padding from 7em to 1em on the splash part
      I have tried
        .pl-sn-teamwork .pl-tw-splash {
          padding-top: 1em;
          padding-bottom: 1em;
        }
       
      This works in chrome inspect but when added to custom css nothing happens.
      I have also tried most of the classes I can see accoiated with this section but again nothng seems to happen.
      Any ideas?
×