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

Поделиться
HTML-код
  • Опубликовано: 8 янв 2025

Комментарии •

  • @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 года назад +2

      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!

  • @nilsapuente494
    @nilsapuente494 4 года назад +10

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

    • @PeeAyeCreative
      @PeeAyeCreative  4 года назад +2

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

  • @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 3 года назад +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  3 года назад

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

  • @tymnurban3436
    @tymnurban3436 3 дня назад

    Thanks!

  • @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.

  • @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

  • @rufi6160
    @rufi6160 4 года назад +1

    Bro you deserve 3 Million subscribers!

  • @tarik3879
    @tarik3879 7 месяцев назад

    Four years later I thank you for this wonderful video!

  • @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!

  • @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!

  • @tymnurban3436
    @tymnurban3436 3 дня назад

    You are the best. This solution works flawlessly. I am wondering about the same issue inside the divi builder. I am wondering how to solve the problem of the header overlapping still inside there. :)

  • @markotavra2317
    @markotavra2317 3 года назад +1

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

  • @imerpacheco6967
    @imerpacheco6967 2 года назад

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

  • @CometLeads
    @CometLeads 7 месяцев назад +1

    Thank you so much!! subbed

  • @rickusjansenvanrensburg2643
    @rickusjansenvanrensburg2643 2 года назад +1

    Nelson to the rescue again! Thank you!

  • @aniketjoshi7518
    @aniketjoshi7518 4 года назад +1

    Another genius video from genius mind

    • @PeeAyeCreative
      @PeeAyeCreative  4 года назад

      You're very kind, thank you for that! :)

  • @JeffTincher610Digital
    @JeffTincher610Digital 4 года назад +1

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

  • @ivanso1978
    @ivanso1978 10 месяцев назад +1

    life saver! thanks!

  • @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

  • @JanaMurrayOBX
    @JanaMurrayOBX 4 года назад +1

    Super helpful, cannot that you enough! :)

  • @tulonena
    @tulonena 2 года назад

    Thanks that's so helpful!!!

  • @francismalabanan9830
    @francismalabanan9830 4 года назад +1

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

    • @PeeAyeCreative
      @PeeAyeCreative  4 года назад

      You're welcome Francis, glad you like it!

  • @anasaditya739
    @anasaditya739 10 месяцев назад +1

    thank you, its really helpfull

  • @davemaynard
    @davemaynard 4 года назад +1

    Thank you! You are a life saver!

  • @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!

  • @terryg4415
    @terryg4415 3 года назад +1

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

  • @overcomers8775
    @overcomers8775 Год назад

    Thank you!!!! You saved my life 😂

  • @abhisheksolanki367
    @abhisheksolanki367 3 года назад +1

    nice solution man..

  • @wolfsbane89
    @wolfsbane89 4 года назад +1

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

  • @SoniumSun
    @SoniumSun 3 года назад +1

    Nice! Thx bro!

  • @elmatougguielhoussein4509
    @elmatougguielhoussein4509 4 года назад +2

    another nice tuto, 👍

  • @shan0715
    @shan0715 3 года назад

    Thanks man,much appreciated.

  • @MelissaSauceda-j4r
    @MelissaSauceda-j4r 2 месяца назад

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

  • @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!

  • @MarkJHolme
    @MarkJHolme 4 года назад +1

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

  • @ayamayoga1728
    @ayamayoga1728 4 года назад

    Thank you so much, game changer!

  • @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?

  • @anubhasingh6656
    @anubhasingh6656 3 года назад

    YOU FUCKING SAVED ME BRO!!! I LOVE YOU

  • @breeramirez7099
    @breeramirez7099 4 года назад +1

    Thank you thank you thank you!!

  • @ivanso1978
    @ivanso1978 10 месяцев назад

    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?

  • @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!

  • @kubydigital
    @kubydigital 4 года назад +1

    you are hero
    thank you for good job

  • @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.

  • @SarahCodes
    @SarahCodes 8 дней назад

    OMG thank you

  • @robertwood2334
    @robertwood2334 4 года назад

    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  4 года назад

      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.

  • @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?

  • @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.

  • @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  4 года назад

      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

  • @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...

  • @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..

  • @rashidfaruqui4130
    @rashidfaruqui4130 3 года назад

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

  • @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.

  • @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.

  • @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 11 месяцев назад

      did you find any solution
      my website header goes too low

  • @christianchamberofcommerce862
    @christianchamberofcommerce862 4 месяца назад

    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  3 месяца назад

      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!

  • @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 :)

  • @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!

  • @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!

  • @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.

  • @ssaarroo100
    @ssaarroo100 3 года назад

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

  • @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!

  • @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.

  • @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 11 месяцев назад

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

  • @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

  • @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 .

    • @PeeAyeCreative
      @PeeAyeCreative  4 года назад

      Hey Drew, can you clarify what you mean?

  • @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.

  • @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.

  • @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!