• Resolved peripateticfrasmotic

    (@peripateticfrasmotic)


    I’m running Twenty Fourteen theme with the Fourteen Colors plugin (to change the deafult colour settings).
    When I have Autoptimize set to optimize CSS it seems that the default style CSS settings (from the parent theme) are loaded for mobile devices ignoring fourteen colors settings or any settings from the child theme CSS.
    Of course I can avoid this by setting Autoptimize not to optimize CSS code, but is there any other workround?

    https://wordpress.org/plugins/autoptimize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Evening peripateticfrasmotic;
    I don’t know the fourteen colors plugin (I’d be happy to have a look at your site to gather some idea of what is does if you can provide me the URL here or via futtta-at-gmail-dot-com), but I assume its CSS is added inline (in the HTML). In that case you might try to exclude that block of CSS from being optimized, by identifying a unique string in the CSS and adding it to the comma-seperated list of exclusions on the AO admin-page.

    Hope this helps,
    frank

    Thread Starter peripateticfrasmotic

    (@peripateticfrasmotic)

    Thanks Frank – I’m trying to use this set-up on a couple of sites, but the (first) one is http://www.mattandhelengallagher.com.
    Currently set with a twenty-fourten child theme (primarily changing colors), fourteen colors plugin (because the child theme seemed unabel to change some of the colors on its own – though I’ve since discovered this is down to CSS specificity, so I may amend the child theme and ditch the plugin eventually), and automptimize plugin on – but only optimizing html.
    I have other plugins installed, but (at this stage) they don’t seem to be involved.
    Grateful for any suggestions / insights.

    Plugin Author Frank Goossens

    (@futtta)

    Well, I would start by trying to exclude the inline CSS generated by the “fourteen colors” plugin, adding e.g. “Custom Contrast Color” to the comma-separated list with CSS excludes. Can you give that a try?

    Thread Starter peripateticfrasmotic

    (@peripateticfrasmotic)

    Yep that seems to solve it – tested and working on two different sites. Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Autoptimize problem with Twenty Fourteen Theme’ is closed to new replies.