How To Automatically Stop Your Fixed Divi Header From Overlapping The Page And Push It down Instead

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 153

  • @avviano
    @avviano 4 роки тому +9

    Your channel has a lot of DIVI solutions to annoying problems that I have been bugging Divi support with on almost every site of mine. Thank you for taking the time to make your insights public!!! Keep up the good work...

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      Hey you're welcome, it's feedback like that from people who appreciate it that keeps me going! I have lots planned, and let me know if you have ideas!

  • @kevinwilt7722
    @kevinwilt7722 3 роки тому +3

    Wow. The hours I have spent messing with padding on individual pages to stop them from getting chopped off. This was amazing!

  • @karlong2
    @karlong2 2 роки тому +1

    You rock! I was about to spend hours of my life adding padding to every content container on the website I'm working on. Your solution was a five-minute fix. Thank you! I'm now a life-long subscriber.

    • @PeeAyeCreative
      @PeeAyeCreative  2 роки тому

      Awesome! Thank you! So glad to save you time.

  • @nilsapuente494
    @nilsapuente494 4 роки тому +9

    How come this guy doesn't have a million subscribers? You're awesome!! Thank you so much for your content :)

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      Hey Nilsa, we had 35 in November so I think over 1500 right now is pretty good :) Thanks for the encouragment!

  • @rufi6160
    @rufi6160 4 роки тому +1

    Bro you deserve 3 Million subscribers!

  • @FollowMarnie
    @FollowMarnie 3 роки тому

    Thank you so, so much! 💛💛💛
    May I ask how I can fix that overlapping problem for the custom headers? I'm using different headers for landing pages. Thanks a lot!

  • @tarik3879
    @tarik3879 7 місяців тому

    Four years later I thank you for this wonderful video!

  • @poroshmoni9770
    @poroshmoni9770 3 роки тому +1

    Nelsoon, u r a life saver.. one of the boss. thats why now we demand more.. plz sir make more videos for us

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Thank you, new tutorials every week!

    • @poroshmoni9770
      @poroshmoni9770 3 роки тому

      @@PeeAyeCreative we demand 2 tutorials every week

  • @rickusjansenvanrensburg2643
    @rickusjansenvanrensburg2643 2 роки тому +1

    Nelson to the rescue again! Thank you!

  • @john-j3
    @john-j3 4 роки тому +4

    Stellar!!! 🙌 Thank you, the fact that it will automatically adjust when I change the header size it the kicker!! Great information!!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Thank you, yes this is really cool. I'm glad you found it and be sure follow along for more stuff like this!

  • @kellyburchelldesign666
    @kellyburchelldesign666 2 роки тому

    oh you are wonderful! I have been fiddling around trying to find a solution to this and generally failing! and then here you come with exactly what I need! thank you so much

  • @lastarena
    @lastarena 3 роки тому +1

    This is awesome, Nelson. Thank you! Saved so much time. I did notice it's best to disable the section on mobile and tablet, otherwise you're left with a big gap between the header and the content. Thanks again!

    • @FerPina
      @FerPina 3 роки тому +1

      Indeed, I have that same issue since I have my header fixed only on desktop but not tablet / mobile. I dont have much idea about divi just starting to build my own site, would you mind sharing how to disable this on mobile / tablet and have it enabled only for desktop? Thanks!

    • @lastarena
      @lastarena 3 роки тому +1

      @@FerPina Hi Fernando. Just go into grid view and find the section that was added on top of the page and go to the advance section. Under visibility, click disable on phone and tablet.

  • @tiffanylin4436
    @tiffanylin4436 2 роки тому +1

    Thank you so much! Love how you always have simple solution for these problems

  • @pcsolutionscapecod52
    @pcsolutionscapecod52 2 роки тому

    Awesome!!!! You saved my sanity! Thank you for the video and the script!

  • @meli2960
    @meli2960 2 роки тому +1

    this worked for me for awhile. with updating to wp version 6.0.2 and divi 4.18.0 it doesn't work anymore

  • @JeffTincher610Digital
    @JeffTincher610Digital 4 роки тому +1

    awesome!! i went the route of just adding "random padding". :) going to revise with your script.

  • @CometLeads
    @CometLeads 6 місяців тому +1

    Thank you so much!! subbed

  • @markotavra2317
    @markotavra2317 2 роки тому +1

    I love you Nelson !!! 🙂 Thanks a lot for this

  • @aniketjoshi7518
    @aniketjoshi7518 4 роки тому +1

    Another genius video from genius mind

  • @ivanskoda144
    @ivanskoda144 3 роки тому +1

    Hi Bro, another perfect tip from you, professional and simple, all I had to do is to paste the snippet to the head in CSS, thank you as always!

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Thank you sir, I'm really glad you like the tutorials!

  • @MarkJHolme
    @MarkJHolme 4 роки тому +1

    So good when you stop that head against a brick wall thing!

  • @JP-su9ib
    @JP-su9ib 3 роки тому

    when I have a react project can I just copy paste the code somewhere and if where. or do I have to write the logic new?

  • @ivanso1978
    @ivanso1978 9 місяців тому +1

    life saver! thanks!

  • @MelissaSauceda-j4r
    @MelissaSauceda-j4r Місяць тому

    Great tutorial! I would like to do this, only to the header of my blog page. Is there a code for this?

  • @ivanso1978
    @ivanso1978 9 місяців тому

    Is there a way to target screen sizes ie: I only want the desktop header to be fixed but the mobile screens scrolling, so this fix would only apply to the desktop?

  • @imerpacheco6967
    @imerpacheco6967 2 роки тому

    Amazing! Thank you so much for this tutorial and providing the javascript. It really saved the day!

  • @terryg4415
    @terryg4415 3 роки тому +1

    Wish I’d known this a long time ago! Thanks.

  • @123Millymay
    @123Millymay 5 місяців тому

    Is there a way to achieve this when using a transparent header?, i.e. not move the entire page but the section?

  • @abhisheksolanki367
    @abhisheksolanki367 3 роки тому +1

    nice solution man..

  • @tulonena
    @tulonena 2 роки тому

    Thanks that's so helpful!!!

  • @anubhasingh6656
    @anubhasingh6656 3 роки тому

    YOU FUCKING SAVED ME BRO!!! I LOVE YOU

  • @wconditi
    @wconditi 4 роки тому +1

    Awesome ! Exactly what I needed! Thank you! "Well..you're guessing and it's inefficient and it's rather stupid to do that..." LMAO!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      Haha I think I'm getting less formal 😂 Glad you liked it and found it helpful!

  • @davemaynard
    @davemaynard 3 роки тому +1

    Thank you! You are a life saver!

  • @JanaMurrayOBX
    @JanaMurrayOBX 4 роки тому +1

    Super helpful, cannot that you enough! :)

  • @anasaditya739
    @anasaditya739 9 місяців тому +1

    thank you, its really helpfull

  • @rashidfaruqui4130
    @rashidfaruqui4130 3 роки тому

    Hii, I m having a similar problem where my sticky nav bar hides contents on page when I use smooth scrolling.

  • @elmatougguielhoussein4509
    @elmatougguielhoussein4509 4 роки тому +2

    another nice tuto, 👍

  • @SoniumSun
    @SoniumSun 3 роки тому +1

    Nice! Thx bro!

  • @overcomers8775
    @overcomers8775 Рік тому

    Thank you!!!! You saved my life 😂

  • @JM-rz5sj
    @JM-rz5sj 4 роки тому

    Thanks a lot for this. I have one question, I would need this to happen in all the pages but the landing page (as I use a transparent header and I need the header to overlap the image in the background). How can I do it so the code you posted to apply to certain pages? Thank you

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Hi Javier, I haven't tried it but you could start by changing the CSS class in the jQuery. Try using a custom class in your section in the template for the other pages instead of .et_pb_section

  • @robertwood2334
    @robertwood2334 3 роки тому

    Hi, great vid 👍
    Got a slight issue: i’m very new to divi. Created my header in divi builder. Added your fix. Then I’m adding a full width header module on my home page. I have made it fit full screen. Problem is it now the 100% now goes below the fold. I’m guessing it’s moved down by the size of the header pushing it down? Anyway to solve this. Sorry if this has been asked before, cheers

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      Hi Robert, good question, I haven't tried that but I'm not sure how you could have a full height section and yet also have a header, so I guess that is the underlying issue - physics.

  • @soniadarshsuresh8240
    @soniadarshsuresh8240 3 роки тому

    how to solve the problem of overlapping of image slider on navigation bar. Because When I created my Image slider it is not compatible with my Navigation bar as the Image is Overlapping on the Navigation bar and creating problem for the Navigation bar.

  • @tatianatsiami3842
    @tatianatsiami3842 4 роки тому

    Do I have to have created the header with Divi header? I haven't used this so wanted to know if there is a way to do this without divi header? Thank you

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Tatiana, this tutorial is about fixing the overlap that is created when you make a header built with the Theme Builder fixed. I don't think there is any issue with the regular one.

  • @MsilikaleMsilanga
    @MsilikaleMsilanga 3 роки тому

    This is great solution thank you so much, would it be possible to use the same code for the Seccion that is flexed below the page? Thank you in advance.

    • @PeeAyeCreative
      @PeeAyeCreative  3 роки тому

      I'm not sure what you mean, but depending on your situation you could adapt it.

  • @albertstrano2202
    @albertstrano2202 4 роки тому

    Great post - one quick thing: I get a white space below mine but only on tablet and mobile. Any ideas?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Albert, a couple people said they had that issue with a box shadow, but I couldn't replicate that.

  • @ssaarroo100
    @ssaarroo100 3 роки тому

    I have a similar problem .. a fixed column of a section is overlapped by the footer .. any solution for that?

  • @francismalabanan9830
    @francismalabanan9830 4 роки тому +1

    Again Amazing work! Thank you Nelson / Pee Aye Creative Rocks!

  • @shan0715
    @shan0715 3 роки тому

    Thanks man,much appreciated.

  • @leticiabishop
    @leticiabishop 4 роки тому

    AMAZING thank you it worked, though I was the only one with this problem.

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Leticia, you're not the only one! Glad this helped!

  • @mr.c.2888
    @mr.c.2888 4 роки тому +1

    Great video! If you use a regular image as your logo include this code too. (Just swapped .et_pb_menu__logo with .et_pb_image_wrap
    /*set the transition for the logo shrinking action*/
    .pa-header .et_pb_image_wrap img {
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }
    /*change the logo size when the header shrinks*/
    .pa-fixed-header .et_pb_image_wrap img {
    max-width: 80%;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
    }

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hey Mr. Corr, I'm guessing you intended this for my other video on the shrinking header, correct?

    • @mr.c.2888
      @mr.c.2888 4 роки тому

      @@PeeAyeCreative yes! I was starting a new site so had so many tabs open and many were your great tutorials! Ill post it over there in case people want to use a regular image

    • @grupoeinversionessanchez6368
      @grupoeinversionessanchez6368 3 роки тому

      I have problem were the body goes really below leaving a white space along with it... were do I change what are you mention here? my header is a kind of Shows after some pixels, Change styling method...

  • @mohitsain4799
    @mohitsain4799 4 роки тому

    can you please help me to fix a problem. My mega menu is just hiding behind the banner or any image, whenever i hover my cursor to dropdown the mega menu content we can say that the image and banner overlap it. plz try to help me.

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Mohit, you can post this question in our Divi Teacher Facebook group if you want!

  • @breeramirez7099
    @breeramirez7099 4 роки тому +1

    Thank you thank you thank you!!

  • @wolfsbane89
    @wolfsbane89 4 роки тому +1

    my hero! thank you so much, was going crazy here :P

  • @jamesschoaf
    @jamesschoaf 4 роки тому

    I noticed this code calculates the shadow on the header div as well... anyway to fix that (beisdes removing drop box shadow)?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Huh? It's not doing it for me, not sure what you mean.

    • @TheRiyazSaiyed
      @TheRiyazSaiyed 10 місяців тому

      did you find any solution
      my website header goes too low

  • @christianchamberofcommerce862
    @christianchamberofcommerce862 3 місяці тому

    We don't use Divi but, we are facing an issue with the overlapping header. Do you think that snippet would work outside of Divi or would the Divi theme would be required?

    • @PeeAyeCreative
      @PeeAyeCreative  2 місяці тому

      I'm sure a similar concept would work, but would need to be adapted to your builder.

  • @wconditi
    @wconditi 4 роки тому

    Hey there! Is there a way to make this work for Posts as well as pages? It seems the top of posts are still obscured. Thanks!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hey Warren! I just went in and set this all back up. Phew! It does work on posts. I was kind of wondering why it wouldn't. Are you using the Theme Builder on the post? Maybe that is a factor, but I tested both and it worked.

    • @wconditi
      @wconditi 4 роки тому

      @@PeeAyeCreative Absolutely! Thanks for the reply! Yes, seems posts that have been put into the Divi editor then updated are fine. Posts created using the stardard editor are not. I appreciate you taking the time to get back to me. Stay well and keep your great videos coming!

  • @kendalldhorn
    @kendalldhorn 4 роки тому

    I was wondering if you had any recommendations for how to do this with two headers? I am trying to design two different headers (one for the desktop and one for tablet/mobile). Even though the desktop header isn't visible the code still adjusts for it, leaving a gap

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi Kendall, I had not thought of that scenario, I'm not sure. It would be best practice to use just one header and not to use the visibility settings though because it creates duplicate content.

    • @kendalldhorn
      @kendalldhorn 4 роки тому

      @@PeeAyeCreative Okay that makes sense, thank you!

  • @AmandaLynneMurtagh
    @AmandaLynneMurtagh 2 роки тому

    I wonder how this can work for a left side menu. Mine is overlapping the content on smaller screens long before it turns to the mobile layout.

    • @PeeAyeCreative
      @PeeAyeCreative  2 роки тому

      It would not be applicable to that.

    • @AmandaLynneMurtagh
      @AmandaLynneMurtagh 2 роки тому

      @@PeeAyeCreative ok. I was trying to see if the code could be changed for that purpose. Thanks :)

  • @ayamayoga1728
    @ayamayoga1728 4 роки тому

    Thank you so much, game changer!

  • @tattoogoon
    @tattoogoon 4 роки тому

    im getting space below mine. fixed header is for all devices and there is no anchor link. any ideas?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi there, I'm not sure what you mean about no anchor link. And you mentioned for all devices...can you elaborate? Also not sure about the spacing...is there a box shadow on the section? I have heard that some users had that issue.

    • @tattoogoon
      @tattoogoon 4 роки тому

      @@PeeAyeCreative i dont know what happened but it vanished "all by itself" lol so back to how it should be

    • @TheRiyazSaiyed
      @TheRiyazSaiyed 10 місяців тому

      have the same issue, no shadow still a substantial space between header and body @@PeeAyeCreative

  • @W1nningAttitude
    @W1nningAttitude 4 роки тому

    Hello, very good tutorial.
    I have announcement bar allowed only on home page. Adding this code will leave space on top of the page because I do not want announcement bar to be fixed. Can I make exeption and how to home page?

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hi there, if you don't want it to be fixed you could just put it on that page instead. The code was made specifically to stop the overlap issue.

  • @kubydigital
    @kubydigital 4 роки тому +1

    you are hero
    thank you for good job

  • @theseidlehands
    @theseidlehands 4 роки тому

    I really appreciate these tutorials.
    This work well, but it seems to introduce a different problem.
    Anchor links place the user below the start of the content by the height of your header. I've tested this by removing the fixed value and the snippet. The links again behave as expected.

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Yes, this has been discussed on the blog comments. You just have to place the anchors higher I suppose. Don't know any clever ways to solve that!

  • @spitsparrow
    @spitsparrow 3 роки тому

    this doesnt work if you build a fixed header navigation on each individual page as i did. I needed a different header for each page. THey are all different colours. So i jut built the menu at the top and now i have this problem and no way to fix it

  • @christianhimmer
    @christianhimmer 4 роки тому +1

    Perfect... Thank you ... Now I need something for the logo 🤣🤣🤣 make it bigger than the menu... And can shrink when the menu shrink...

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Hey Christian, you're welcome! Have you see my other video/tutorial, it is on exactly what you described: www.peeayecreative.com/how-to-shrink-the-divi-header-menu-when-scrolling/

    • @christianhimmer
      @christianhimmer 4 роки тому

      @@PeeAyeCreative of course... But I'm looking something to make the logo bigger than the menu..
      And when the menu shrink.. the logo shrink too...
      Sorry for not explaining so good..

  • @tymnurban3436
    @tymnurban3436 Рік тому

    I have used this successfully on a couple sites, but on one site it isn't working. How odd is that?

    • @PeeAyeCreative
      @PeeAyeCreative  Рік тому +1

      Not sure

    • @tymnurban3436
      @tymnurban3436 Рік тому

      @@PeeAyeCreative Thank you. I know that my reply was vague. I discovered that there was a bit of code hiding in my content from a previous menu customization. Your code worked perfectly as before. You are truly the best!

  • @rachaelbratsch
    @rachaelbratsch 3 роки тому

    Man, it didn't work for my page. I was hoping it would because I can't open my blog post main page to edit manually in Elementor and my top post title is cut off.

  • @Idontwantahandle3
    @Idontwantahandle3 3 роки тому

    Doesn't work for me because I made a custom global header with a left slide in menu, that is full height. So sad...

  • @abigroman
    @abigroman 4 роки тому

    I always have a gap before I make changes. I always have to pull the body up .

  • @p.h.848
    @p.h.848 4 роки тому

    A compliment and a question. Your guides have elevated our web design business skills and we look forward to continuing to purchase your products. The Question: Is it possible to get this to work with the code for "How to Swap Your Divi Header for Another One on Scroll" found here (www.elegantthemes.com/blog/divi-resources/how-to-swap-your-divi-header-for-another-one-on-scroll). That is, our website uses the swap divi header menu functionality on scroll but much like your example before your fix and countless others the menu overlaps the content. However, when we added the provided code in your blog post it created tons of space between the menu and our main content on each page and we were unable to get around how to resolve this. Thanks!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      Hi there, I'm not sure without seeing it. Must be something conflicting with their code.

    • @p.h.848
      @p.h.848 4 роки тому +1

      ​@@PeeAyeCreative Thanks for responding. We continue to love and support your content. It's funny that you say that because just a few hours ago we discovered a solution based on a few days of research and it was indeed a specific conflicting code error. We were able to just add some padding via a media and js query before the main content on each page to resolve the issue. Your guide for making sure the fixed header doesn't overlap content is a more adaptive and smarter fix but in our instance we just had conflicting code. Have a good one and keep up the great work!

  • @natsarimthings3147
    @natsarimthings3147 4 роки тому

    Your code didn't work. I'm using Divi 5.5

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      It does work, so you will have to give some context if you want to find out what is different at your site.

  • @rossfiber1928
    @rossfiber1928 4 роки тому

    my main header is jumping and expanding downward on page load. its default divi header. the issue started as soon as i made menu fullwidth in customise settings. pls help fix this as i can't find any solution for it online. visit kokomomo dot in

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому +1

      What you described is the typical behavior based on the order of how the parts of the page/code load in Divi. You can ask Elegant Themes support about this though and they will be a much better help than me.

    • @rossfiber1928
      @rossfiber1928 4 роки тому

      @@PeeAyeCreative yes i got it fixed by a code they provided which made some parts static. but anyways i love your videos and have helped me in many ways.

  • @Macaranda
    @Macaranda 4 роки тому

    You are great! SUBSCRIBE!

    • @PeeAyeCreative
      @PeeAyeCreative  4 роки тому

      Thank you! ;) Sounds good, lots more like it coming!

  • @DJ-yb6dy
    @DJ-yb6dy 2 роки тому

    it doesnt work. But i dont know why

    • @DJ-yb6dy
      @DJ-yb6dy 2 роки тому

      ok i guess it just works with the divi section boxes, not with the integrated wordpress options before starting divi.

    • @PeeAyeCreative
      @PeeAyeCreative  2 роки тому

      Yes this is a Divi tutorial

  • @NomadVideoProductions
    @NomadVideoProductions 3 роки тому

    It did not work. No change.