• Resolved lutechi

    (@lutechi)


    Hello I have one of my sites (the only one with WPML plugin) skipping to include the CSS file with the rest.

    This is the file:

    wp-content/plugins/sitepress-multilingual-cms/res/css/language-selector.css?v=3.1.5

    This is my exclude CSS line:

    admin-bar.min.css, dashicons.min.css

    Pretty much default on excludes.

    My settings:

    Checked
    Checked

    Checked
    No
    No
    No

    Checked
    Checked
    No
    No
    No

    Checked

    I appreciate if anyone else figured it out and comment on it.

    Awesome work and thanks in advance.

    https://www.ads-software.com/plugins/autoptimize/

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

    (@futtta)

    Do you have a link to share (here or via futtta-at-gmail-dot-com) where I could have a quick look lutechi?

    frank

    Thread Starter lutechi

    (@lutechi)

    Hello Frank,

    The beta version worked!

    Awesome, thanks again ??

    Plugin Author Frank Goossens

    (@futtta)

    glad it works lutechi!

    quick recap for other people who would read this; the problem was that autoptimize 1.9.2 (current version now, april 2015) does not always succeed in capturing all CSS/JS. 1.9.3 (which is to be released soon now) changes that and lutechi installed that beta.

    frank

    I’m experiencing the same thing here, with Autoptimize 2.0.0. The path for the WPML CSS file is somewhat different though:

    /wp-content/plugins/sitepress-multilingual-cms/res/css/A.language-selector.css,qv=3.3.6.pagespeed.cf.GvOp5VMKrL.css

    I’m guessing the file name is diffusing for Autoptimize.

    Thread Starter lutechi

    (@lutechi)

    Hello Jonathan,

    After awhile I decided I did not needed the CSS from WPML because it was so minimal in my case that I put the following function in the function.php file of my child theme to dequeue the WPML CSS and any CSS needed I just added to my theme:

    define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true);

    Here are other JS or CSS you can disable from WPML:

    https://wpml.org/documentation/support/wpml-coding-api/

    Hopefully that might help you if is like my case.

    Hi lutechi, thanks for the tip! I tried it out but it pretty much screwed up the language drop-down selector. ?? I’ll wait and see if Frank can work his magic on this (as usual).

    Plugin Author Frank Goossens

    (@futtta)

    /wp-content/plugins/sitepress-multilingual-cms/res/css/A.language-selector.css,qv=3.3.6.pagespeed.cf.GvOp5VMKrL.css

    you seem to be running pagespeed, which means AO might not be able to read that file from the filesystem. can you try if AO picks up the file with pagespeed disabled?

    frank

    Hi Frank, tried it but with no luck. Here’s the current path (without PageSpeed):

    /wp-content/plugins/sitepress-multilingual-cms/res/css/language-selector.css?v=3.3.6

    Another weird thing is that I’m using a plugin to remove all query strings, but it doesn’t remove the query strings for the WPML CSS. WPML seems to be up to no good here.

    Plugin Author Frank Goossens

    (@futtta)

    /wp-content/plugins/sitepress-multilingual-cms/res/css/language-selector.css?v=3.3.6

    and domains match?

    Another weird thing is that I’m using a plugin to remove all query strings, but it doesn’t remove the query strings for the WPML CSS. WPML seems to be up to no good here.

    it’s not impossible WPML is injecting this link using the output buffer, which could cause both AO & “remove query strings” not to see it …

    frank

    I solved this now by removing the WPML CSS, as proposed by lutechi, and copying the WPML CSS content into the “above the fold” option in Autoptimize. Not the fanciest of solutions, but it works. So for me this is now resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WPML CSS Getting Skipped – Not excluded’ is closed to new replies.