Title: Excluding Mega Menu Script versions from Autoptimize CSS
Last modified: March 29, 2018

---

# Excluding Mega Menu Script versions from Autoptimize CSS

 *  [cebcreative](https://wordpress.org/support/users/cebcreative/)
 * (@cebcreative)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/excluding-mega-menu-script-versions-from-autoptimize-css/)
 * Hi there,
 * I am having issues when enabling CSS options with my Max Mega Menu – By Tom Hemsley.
 * Despite excluding the CSS /wp-content/uploads/maxmegamenu/ the menu style on 
   the nav is still broken. It should be centred with white background like the 
   live site – [https://www.thefoscotehospital.co.uk](https://www.thefoscotehospital.co.uk)
 * The mega menu uses a dynamic style sheet so can we exclude this from being optimised?
   We can see it is being loaded in the head.
 * Many thanks,
    Charlotte
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexcluding-mega-menu-script-versions-from-autoptimize-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/excluding-mega-menu-script-versions-from-autoptimize-css/#post-10128028)
 * the dynamic CSS actually has errors (there are no selectors);
 * `<style type="text/css" title="dynamic-css" class="options-output">{font-family:
   Raleway;font-weight:800;font-style:normal;}{font-family:Raleway;font-weight:600;
   font-style:normal;}{font-family:Raleway;font-weight:400;font-style:normal;}{font-
   family:Raleway;font-weight:300;font-style:normal;}{font-family:Raleway;font-weight:
   200;font-style:normal;}</style>`
 * If you correct that, the problem with the mega-menu will probably be fixed as
   well.
 * frank

Viewing 1 replies (of 1 total)

The topic ‘Excluding Mega Menu Script versions from Autoptimize CSS’ is closed to
new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [max mega menu](https://wordpress.org/support/topic-tag/max-mega-menu/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/excluding-mega-menu-script-versions-from-autoptimize-css/#post-10128028)
 * Status: not resolved