• Resolved webworks

    (@webworks)


    Hi Frank – Nifty plugin as always – love the power up πŸ˜‰

    I’m setting up the referenced URL and have run into something strange.

    I’m using this bit of css which prevents the “switch” part of a collapsible pre-header (white bar at top) In this case, we want the preheader static without the collapse.

    #g1-preheader__switch { 
    	display: none; 
    }

    This CSS hides the “switch arrow bar” as it should. But as soon as we activate autoptimize, the white “switch-bar” with right-arrow appears at top – leaving an extra tall white top margin.

    This happens whether we do above-the-fold at criticalcss or not.

    What can we do to make that css “stick” and still do our optimizing?

    Thanks in advance –

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

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Evening Heather πŸ™‚
    you could try adding #g1-preheader__switch to the comma-separated CSS optimization exclude list or you could make it display:none !important; flag maybe?

    hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘CSS ignored when plugin active?’ is closed to new replies.