Jump to content


This topic is now archived and is closed to further replies.


Custom Fixed Nav for Responsive Site

Recommended Posts




Could you please take a look at my dev site: http://whub34.webhostinghub.com/~videoh6/cidev2.com/home/


I've been trying to make my own custom fixed nav by placing the following inside a full-width section: 2 columns for media box, and nav bar, and an additional column for a second nav bar.


Here are my problems:

1)I seem to have accidentally deleted the header section, so now my custom nav is in a full-width section and is partially obstructed by the WP admin nav bar.  How do I get the header back, or otherwise fix this annoying problem?

I can't just give margin to the top, since this means that the lower sections will be seen in this space as the user scrolls up.


2) Under my custom nav I have a Hero Unit. How do I get this to work so that it stays below the custom nav in a responsive way? I can't just give lots of padding to the bottom of my custom nav, as this gives too much empty vertical space for large screens etc. I attempted to a LESS solution, but I didn't do it correctly as it is not working.


Here's the LESS I  attempted:

#site {
  padding-top:(@resLargeDesktop 100px);
  padding-top:(@resDesktop 200px);
  padding-top:(@resPortraitTablet 300px);
  padding-top:(@resPhoneLandscape 400px);
Thanks very much,



Share this post

Link to post
Share on other sites
James B

Hi there,


You won't have deleted the header section, that should be present on all pages. If you click on the editor so the page grid comes up, try removing the second nav to see if the header panel (which can be very thing) is hidden under the top nav. If it is, put back your nav then use css on the #header to give it a margin-top of --px so it moves down the screen so you can edit/drop.


It shouldn't matter if the elements below appear in that position as the screen scrolls, as they will still go under the navbar at the same point as they would in the standard setup etc, the content scrolls under the fixed nav.


When the fixed navbar is in place there is a div called fixed top before the nav which stops the content below going under. Adjust the figure here to keep the content below.


.pl-fixed-top {
height: --px;

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

  • Similar Content

    • stijnxo
      By stijnxo+
      Is there a way to disable the responsive function of your iBoxes?
      I do not want all iBoxes underneath each other on mobile, is there a way to fix columns or group boxes?
      I use them for small links and want them to stay next to each other, see attachment
      Please let me know.

    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • lionel1
      By lionel1
      I use on my home page " impulse module " but when i look on my iPhone the image is cut and not responsive .
      i only have this problem with this module not with the other one .
      thanks for ur help
      website / www.elonakane.com 
    • kwaoru
      By kwaoru
      I have been using DMS and pagelines.
      I am facing to a huge trouble with the appearance of one of my page on mobile (smart phones) built with pagelines.
      However I haven’t come to any solutions to organise either edit the appearance of mobile view to look neat or deactivate the responsive function. 
      Now it looks totally messy on the phone...
      1. Is there any way to edit the appearance of the mobile version (responsive theme)?
      2. Is there any way to deactivate responsive function?
      If I could receive support from you to go thorough this process I would be happy to be a pro member. 
      Looking forward to hearing from you.
    • Paul
      By Paul+
      I have woocommerce store, product shows title and price fine until reduce screen with on a tablet/mobile phone the price and title gets removed?  Any ideas? 
      Here's an example page: https://thelaptopfixers.com/product/operating-system-re-install/
      Try it on both desktop PC browser then resize to mobile/cell phone size!