1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
HOT Divi.Help Pro One-Page Layouts - Beautifully crafted Divi layouts for you to kick start Divi sites.
View All Pro One-Page Layouts
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.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Display jumps, and odd header look on post and project pages

Discussion in 'Basic Support Forum' started by Robin Jones, Jun 26, 2019.

  1. Robin Jones

    Robin Jones New Member
    Divi Ultimate Header Plugin

    Hi,
    I am a big fan of Ultimate Header and have used in on three sites already without issue.

    But I now want to use it for a style update for a multisite, the lead site being https://projectrozana.org/. There is testing site, using the sub-domain, 'staging'.

    I have done two test header setups one full-width, one with vertical navigation.

    FULL-WIDTH EXAMPLES
    Look at https://staging.projectrozana.org/about-us/. Looks fine, except I see a big logo image flash up briefly before the header loads, and you get a small display judder if you scroll down then back up (small issue).

    https://staging.projectrozana.org/an-israeli-shot-me-an-israeli-healed-me/ is a post. See the gap at the top which covers part of the page title. Part of the nav bar is covered until one scrolls.

    VERTICAL NAV EXAMPLES

    https://staging.projectrozana.org/rozanas-story/ shows a narrow gap below the top-of-page site nav menu (narrowed down with Divi margin and height settings). If you scroll down and back up the gap disappears. BTW is it possible to disable the scroll bar that shows if a sub-menu section is opened in the main menu?

    https://staging.projectrozana.org/a-mothers-bravery-inspires/ is a post, and shows the same odd moving down of the nav sections.

    Thanks for your attention, if you need back-end access, can arrange,
    Robin
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Tons of elegant premade sidebar styles to choose from for your Divi site:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try this: Go to Divi > Theme Options to set up the below settings. After you set that, visit every page of your site & Divi will save a copy of the CSS of each page in file format. The next visit to your page will have the CSS file load first & you don't have to see the 'flashing'.

    [​IMG]
    Try to remove negative margin top & bottom for your section settings. Also remove the height 56px CSS that you add in the top navigation section settings & fullwidth menu module settings.

    To make your top navigation smaller in height, try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    Not sure which other plugins caused this issue, but try the below CSS in Divi > Theme Options > Custom CSS to fix it:
    Code:
    Log In or Sign Up to view this code.
    After you did the previous steps to remove the negative margin & height, then this part should be fixed as well.
    Try the below CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
    If you have done all above, this should be fixed as well.
     
  3. Robin Jones

    Robin Jones New Member
    Divi Ultimate Header Plugin

    HI,
    Many, many thanks for the advice which was rapid and worked very well overall. Problem was my limited css skills trying to force things. As to the 'flashing' with the landscape style, the cause of that was the small logo on the left of the main nav bar. I had taken a full-width section and put a nav menu in there, then put the logo image under and used negative margin to push that up.
    What I have done now is replace that with a regular section your custom nav bar and the logo image,using the 'float' property to align.

    Only one issue remains, and covers both vert and landscape styles. On https://staging.projectrozana.org/an-israeli-shot-me-an-israeli-healed-me/ and https://staging.projectrozana.org/a-mothers-bravery-inspires/ the top spacing is now correct, except the titles are partly covered. I can workaround that by adding some space to each post, but maybe you can suggest something.

    And more importantly the post layout forces the header into a narrower width. Does odd things to the DONATE NOW button and ROZANA'S STORY BUTTON. That's not important as they were coming out for non-landing pages, BUT under 1212px screen width the navigation starts to go onto two lines (see screenshot). How can I force the header to use full width, like on 'pages'?

    rozanapost.jpg
    I do appreciate this help,
    Thanks,
    Robin
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring unique comment design on single blog post page:View Demo
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    It's because you added negative margin.

    For this: https://staging.projectrozana.org/a-mothers-bravery-inspires/
    - Go to the first row settings & remove the negative margin top.

    And for this: https://staging.projectrozana.org/an-israeli-shot-me-an-israeli-healed-me/
    - Go to the post title module & remove the negative margin top.
    For a quick fix, try this CSS in Divi > Theme Options > Custom CSS:
    Code:
    Log In or Sign Up to view this code.
     
  5. Robin Jones

    Robin Jones New Member
    Divi Ultimate Header Plugin

    HI again,
    Sorry to have bothered you about the post spacing. To

    HI again,
    Sorry to have bothered you about the post spacing. Totally forgot about that initial spacing. And with that bit of code, all works 100%. Thank you so much.

    Can I be cheeky and ask a last question. If you look at https://staging.projectrozana.org/about-us/ in MOBILE view, you see the full menu with dropdowns showing. The vertical mobile menu only shows top-level buttons, with an arrow for the dropdown items. Do have any code to achieve that?
    Thanks again,
    Robin
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  6. Robin Jones

    Robin Jones New Member
    Divi Ultimate Header Plugin

    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo
  7. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    I see you're using the custom mobile menu section & that's why it didn't work. That code only works for the default Divi mobile menu.

    I made some tweak on the code:
    Code:
    Log In or Sign Up to view this code.
    Code:
    Log In or Sign Up to view this code.
     
  8. Robin Jones

    Robin Jones New Member
    Divi Ultimate Header Plugin

    HI again,
    That did it exactly! I have to say your support responses here have been top notch, as good any I have experienced. Supremely grateful,
    Robin.
     
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Beautify your Divi archive / category page with 15 different premade blog designs:Learn More
  9. ThemeUser

    ThemeUser Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    As this thread is now over a year old, I am wondering if you might know of a better way to stop the flashing of the big header logo before the page loads. I am working on a site that is now experiencing a very bad case of "logo flashing", and needs to be resolved. What would be ideal is if there was some code, or a plugin, that would fix this. Because visiting every page on the site (to generate a CSS of each page) will be too time-consuming to do, each time the site is updated.

    Thanks in advance for your insight on this.
     
  10. ThemeUser

    ThemeUser Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    I should mention that the "logo flashing" that I described above is only happening on WooCommerce product pages, the cart page, and checkout page. Non-WooCommerce pages seem to be okay.
     
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  11. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Upon further checking, it's because CPT pages require two additional CSS Class div tags to work (et-boc & et-l).

    And Divi is using jQuery to wrap those injected sections that are missing the two div tags. That's why there's a delay in showing the styling, even if static CSS file cache is enabled.

    We added some code to fix the delay. If you're using Divi Ultimate Header Plugin, try to re-download & re-install this: https://divi.help/threads/divi-ultimate-header-plugin-v3-0-1.3426/#post-11177

    =========

    If you are using Divi Powerful Child Theme, then you will need to go to WP Admin > Appearance > Theme Editor > Divi Powerful Child Theme > dp-assets > main-functions.php & look for line 175:
    Code:
    Log In or Sign Up to view this code.
    And replace it with the below:
    Code:
    Log In or Sign Up to view this code.
    It's either using Static CSS File Cache or using preloader plugin to hide your page until it's fully loaded. That's the only 2 solutions available.

    As for the Static CSS File Cache, it will generate the CSS file after you or your first guest visitor load the pages. So you may just leave the visiting page task to the first guest visitor.

    Let me know if you still have any other questions.
     
  12. ThemeUser

    ThemeUser Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Yes, I am using the Divi Powerful Child Theme, and the code you supplied here solved the "big logo flashing problem". Thank you for this (very quick) fix!

    A suggestion: perhaps that code should be added to the next update of Divi Powerful.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  13. ThemeUser

    ThemeUser Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Okay, I understand that. But, I think it would be better if the first guest visitor did not see the "logo flashing", as it looks buggy (which is especially not good for an ecommerce site, where we need to instill trust with our customers).
     
  14. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    For new installation of Divi Powerful, you may re-download v1.1.1: https://divi.help/threads/divi-powerful-child-theme-v1-1-1.3431/
    **We already altered the code in that latest version.
    This is how Divi works. There's nothing much we can do about it. Alternatively, you can only use preloader to hide your site until it's fully loaded.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More
  15. ThemeUser

    ThemeUser Member
    Divi Ultimate Child Theme Divi Powerful Child Theme Divi Ultimate Archive Plugin Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    I am using Divi Powerful 1.1.1 (downloaded on April 25, 2020), and it did not have the new code that you provided above. So, if you now updated it, should you not bump up the version number to 1.1.2?
     
  16. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    We just updated the zip file for the same version 1.1.1, as it's only a line of code fix.

    Thus, you will need to download it again for v1.1.1 for future installation, which includes the code fix: https://divi.help/threads/divi-powerful-child-theme-v1-1-1.3431/
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo