• Resolved brocksolutions

    (@brocksolutions)


    The SmartSuite Menu is breaking on some pages, and I found out that Autoptimize is the culprit. For example, when you’re on the Smart Manufacturing Page (Under Services & Solutions tab), the SmartSuite menu breaks.

    How would I disable the script for the SmartSuite Menu, I used the plugin Divi Mega Pro to create the menu, it is also built using the Divi Theme Builder.

    I have tried placing the script plugins/divi-mega-pro/css/style.css into the “Exclude scripts from Autoptimize” but that didn’t work. When I try to exclude the Divi theme, it was fixed but I just want to exclude the SmartSuite Menu only (which is created using Divi), not the whole theme.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, as a first step; does the problem also go away when you disable “aggregate CSS”?

    When I disable AO (by adding ?ao_noptimize=1 to the URL), the Smartsuite menu is broken too, so this looks like it’s not an AO problem after all?

    Thread Starter brocksolutions

    (@brocksolutions)

    Hmm, that’s strange. When I deactivate the AO plugin, the menu is fixed and back to normal. I also tried testing other plugins too to see if they may be causing the broken menu.

    Thread Starter brocksolutions

    (@brocksolutions)

    And yes, when I disable “aggregate CSS” the problem does goes away

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    very weird .. can you try either:

    * adding wp-content/et-cache/ to the comma-separated CSS optimization exclusion list
    * or disabling “also aggregate inline CSS”

    and see if either of those fix things?

    Thread Starter brocksolutions

    (@brocksolutions)

    The first one didn’t work. I tried the second suggestion, it worked but the formatting for our website (link colours, text line height, etc.) changed.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, given the weirdness and randomness of the situation (as it happens on some pages but on what seems to be a minority) what you could do as a workaround; go to the edit screen of the pages where the problem occurs and in the “autoptimize this page” metabox untick “optimize CSS” and be done with it? ??

    Thread Starter brocksolutions

    (@brocksolutions)

    The thing is, it’s so random where the menu breaks at specific pages and then is back to normal, and then breaks at another page and turns back to normal. So it’s happening on a good chunk of our pages.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, guess we’ll have to look for the needle in the haystack in that case ??

    can you try excluding each of the following from CSS opt. one by one; divi-style-parent-inline-inline-css or divi-dynamic-critical-inline-css or ul.et_mobile_menu to see if one of those makes a positive impact?

    Thread Starter brocksolutions

    (@brocksolutions)

    Ok! The first one fixed the broken menu but changed the styles on the website (font size, line height, and link colour).

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    and if you combine the first and second one; divi-style-parent-inline-inline-css, divi-dynamic-critical-inline-css

    Thread Starter brocksolutions

    (@brocksolutions)

    Hmm, combining both has the same results as just adding in the first one

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Darn .. it’s starting to look like you’ll have no choice but to exclude the theme from CSS optimization in that case (as you confirmed that works) :-/

    Thread Starter brocksolutions

    (@brocksolutions)

    Forgot to mention, but when I exclude the theme, the styles on my webpage change as well. It looks like turning off Aggregate CSS-files fixes the menu without any changes to the styles. Does turning off this option make the site run a lot slower? What’s the impact?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Assuming you’re on HTTP/2 (which almost everyone is on) then the impact is minimal ??

    Thread Starter brocksolutions

    (@brocksolutions)

    Thank you so much for your help! I will leave “Aggregate CSS-files” unselected ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Disable script for Divi Mega Pro and Divi’ is closed to new replies.