1. HOT Divi Ultimate Header Plugin - Design Divi custom header globally in Divi Builder: https://header.diviultimate.com/
    Dismiss Notice

Solved Whole section position fixed

Discussion in 'Get Help On Divi Wordpress' started by Maecy, Jul 6, 2019.

  1. Maecy

    Maecy Member

    Why is it that when I try to put position fixed on my banner section, the next section completely overlaps it?
     
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Go to your section settings & set a higher z-index in the Advanced tab.
     
  3. Maecy

    Maecy Member

    But what I want is when the user scrolls down the page, the first section will stay and the second section will overlaps it.
     
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Now I understand what your issue is. That's how position fixed works. It will be considered as no spacing in its original place. That's why it will immediately overlap the second section.

    To make the fixed element has its own spacing in the original place, try to use plugin like this to make it sticky: https://wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
     
  5. Maecy

    Maecy Member

    But the plugin only allows 1 class id. and I have different id for my sections
     
  6. Divi.Help

    Divi.Help Administrator
    Staff Member

    I believe you can set CSS Class as well. Just set CSS Class like .divi-sticky-section & go to Section settings > Advanced > CSS Class & add: divi-sticky-section
     
  7. Maecy

    Maecy Member

    It's working now! Such a rookie mistake, I'm sorry and thank you so much!