1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved How to overlap header onto first section of body content and how to control the size once sticky?

Discussion in 'Basic Support Forum' started by Alexander Leyva, Jul 5, 2020.

  1. Alexander Leyva

    Alexander Leyva New Member
    Divi Ultimate Header Plugin

    Hi everyone, hope you're doing well. I've already read every answered version of this question I could and tried all the solutions I've seen but to no success. My site is currently on private but I can provide access if needed. I'm attaching two photos. The first is an image showing how there's a white block of space that persists behind the non-full-width header that I can't get to go away no matter how many solutions/workarounds I try. In one of the prior posts I read that this capability wasn't possible at the time, but I'm hoping by now it is. I'm sure there's a way to make it work considering it looks how it should as far as how it overlaps content once you scroll. That's the first question. The second question is, I need both levels of the header to shrink in width by half when it becomes sticky as I scroll down. Right now it stays the same size when I scroll down (see second image) except for the logo, which shrinks but doesn't shrink the row along with it. Please see attached photos for reference. I've spent a lot of time trying to figure these two things out so any help is appreciated. Thank you!!
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    **Adjust the value to fit your need.
    **This will make the menu module smaller during sticky.
     
  3. Alexander Leyva

    Alexander Leyva New Member
    Divi Ultimate Header Plugin

    Thank you for the prompt response! So for the white space behind the header, at first the code snippet didn't work but then I added the line "margin-top=-100% !important;" and it worked perfectly so thanks!

    As far as the second issue, I'm not getting any change when I do that, when I scroll only the logo changes in size. I've tried adding the free-sticky class to both the top and bottom sections as well as experimenting with some of the other classes with no luck. I attached what the structure of my menu. How should the CSS class list read for each of the two sections? (and should only the sections get the classes assigned or the internal rows/modules as well?) Appreciate any ideas and thanks again for all your help!
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    I see you're using Divi Theme Builder. That's why our CSS doesn't work for you.

    And it seems like you're using Divi supreme for the sticky feature. And thus, we added some custom shrink CSS for you to work with the Divi supreme sticky feature.
    **We changed some of the CSS Classes for the section as well.

    Kindly check.

    ========

    One more thing:

    Regarding the previous white space issue, it's because of missing selection layout for our header plugin. Thus, I changed our plugin custom header style to be none & remove the CSS for the negative margin that you added.
     
  5. Alexander Leyva

    Alexander Leyva New Member
    Divi Ultimate Header Plugin

    It looks amazing thank you so much!!!

    Alex
     
    1. PRO MEMBER PERKS Divi Mini Cart Pro Plugin - Instantly add 3 different types of mini cart to your Divi site:Learn More