Support » Plugin: Autoptimize » Is there a way to exclude custom css?

  • Resolved cliqueradar

    (@cliqueradar)


    Hi guys,

    I’ve had a look around other support questions and not found quite the same problem I’m dealing with, so thought I’d ask…

    The plugin is working great for the most part, bar one tiny little niggle.

    The theme I’m using has a section in the theme options for adding custom css. I have just a couple of lines in there, but it seems Autoptimize isn’t catching that snippet of custom css and is instead optimising the main theme css only.

    I’ve tried putting the custom css directly into the wordpress custom css in customiser, but it’s still not catching it, and is serving the default css.

    EDIT: The specific element is the semi transparent title boxes for the background slides. Customised css to reduce the bottom padding, but the css being served is the default styling, with increased padding.

    Any help in getting the plugin to catch and serve the custom css would be greatly appreciated.

    Other than that… great plugin!

    Thanks,

    Del.

    • This topic was modified 1 year, 5 months ago by  cliqueradar.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Dammit… I’m sorry… think I fixed it.

    Was sure I’d already tried unchecking the ‘Also aggregate inline CSS?’ box and it hadn’t worked, but… just tried it again and it did work. Also didn’t seem to dent my performance scores, which… your plugin has helped with tremendously!

    So… sorry for the false alarm.

    Carry on. ๐Ÿ™‚

    Thanks,

    Del.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Was sure Iโ€™d already tried unchecking the โ€˜Also aggregate inline CSS?โ€™ box and it hadnโ€™t worked, butโ€ฆ just tried it again and it did work.

    that or you could have put .slideshow-content-wrap in the comma-separated CSS optimization exclusion list ๐Ÿ™‚

    have a nice Friday ๐Ÿ™‚
    frank

    Ah… I didn’t realise I could drop individual elements in there. Thanks for the info.

    And… for a fine plugin.

    Del.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I didnโ€™t realise I could drop individual elements in there

    for inline CSS you can. for linked CSS the exclude works on file URL ๐Ÿ™‚

    Thanks for the info. Andโ€ฆ for a fine plugin.

    you’re welcome @cliqueradar, feel free to leave a raving review here! ๐Ÿ˜‰

    I see you just did that, thanks ๐Ÿ™‚

    Plugin Author Frank Goossens

    (@futtta)

    well, AO CSS optimization seems not active now, so all looks fine ๐Ÿ™‚

    but try excluding themes/university-child/style.css, that might work!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is there a way to exclude custom css?’ is closed to new replies.