1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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 Make transition to sticky smoother

Discussion in 'Basic Support Forum' started by SCOTBORD, Feb 25, 2021.

  1. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Hi,

    I have set a contact row and menu to be sticky on this site - http://176.74.20.8/~patonandco/contact-us/

    It works great but there's a bit of a visual jolt when scrolling starts - is there a way to make the transition smoother and easier on the eye?

    Thanks,

    Jonathan
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    You may try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  3. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks, that does look better.

    Is there another way of making the additional contact row (above the logo and menu) stick to the top? I did it by using the Divi Scroll Effects and setting the contact row to "Stick at top" then added top: 31px !important to .is-sticky .free-sticky.

    This works but I've found that when I use the visual editor now the first row of text content below the banner image is sticking to the top of the page that I'm trying to edit (there's no logical reason for this, but it started after I added the code above along with the Divi Scroll Effects on the contact row above the logo and site menu).

    If there's a way of making the top contact row stick using a Divi Header class and/or css please can you advise? I can then turn off the Divi Scroll Effects (which seem to be causing the issue when editing).

    Thanks.
     
    1. PRO MEMBER PERKS Divi Cart Count Plugin - Easily add cart count to your Divi cart icon. 6 different styles to choose from:Learn More
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    You can just go to the top bar Section Settings > Advanced > CSS Class & add free-sticky

    And you need to find & remove the below CSS:
    Code:
    Log In or Sign Up to view this code.
    **You may find it in WP Admin > Divi > Theme Options > Custom CSS.
     
  5. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks, but if I do that the black contact bar at the top disappears behind the row containing the logo and site menu when scrolling.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo
  6. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    That shouldn't happen, unless you have other CSS affecting it.

    After adding free-sticky for top bar, have you tried to remove the above CSS that I mentioned in previous post?
     
  7. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thanks for getting back to me. I added free-sticky to the black bar and removed the Divi Scroll Effects (from the same bar) and also removed the CSS you mentioned and a big gap appeared between the black contact bar and the site menu: https://ibb.co/09fdzVm

    Just to confirm, I want both the narrow black contact bar (with telephone number/email) and the blue full width menu below to be sticky, but only the dark blue site wide menu/logo row should shrink in height on scroll.

    Currently the black bar makes use of Divi Scroll Effects to make it stick, and the full width menu uses free-sticky. If I add free-sticky to both rows it doesn't work, that's why I used Divi Scroll Effects for the top black row and added the CSS above to ensure that the full width menu sits below the black contact bar when the user scrolls.

    This works onload: https://ibb.co/FxrVxb3

    And it works on scroll: https://ibb.co/1X66fSm

    The problem I have is that with this technique when using the visual builder it is causing content further down the page to be sticky (making editing impossible on some pages).

    Using the Divi Header plugin is there a better way to make two rows sticky (with just the menu resizing on scroll)?
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  8. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    I need to view it live to troubleshoot further. Let me know once you made the changes.
     
  9. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    1. PRO MEMBER PERKS Divi Block Pro - Premade testimonial carousel design for your Divi site without using any plugins:View Demo
  10. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    I see that you haven't made the changes:

    "I added free-sticky to the black bar and removed the Divi Scroll Effects (from the same bar) and also removed the CSS you mentioned"
     
  11. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    If you try again you should see the gap.
     
    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom header designs for you to choose from:View Demo
  12. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    I think you removed the shrinking CSS wrongly. You should add it back.

    This is the CSS that you need to remove:
    Code:
    Log In or Sign Up to view this code.
    **I still see that CSS on your site.

    As for the CSS below, change free-sticky-wrapper-1 to free-sticky-wrapper-2:
    Code:
    Log In or Sign Up to view this code.
     
  13. SCOTBORD

    SCOTBORD Member
    Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Perfect thanks - and sorry for the confusion, I'm trying to do too many things at once!
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More