Support » Plugin: Better WordPress Minify » Compatibility Issue with Latest Version of WPML

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Khang Minh


    What is the original url when BWP Minify is not active?

    Thanks for responding!

    Sorry, that url I gave you wasn’t quite accurate. I have some more info for you:

    It looks like this only happens when the main stylesheet is enqueued in the functions.php file rather than hard coded in header.php.

    So if you are using twenty ten with BWP Minify and WPML, it has this in the header.php:
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    You won’t have any issues.

    But if you are using twenty fifteen with BWP Minify and WPML, it uses this functions.php line:
    wp_enqueue_style( 'twentyfifteen-style', get_stylesheet_uri() );
    And it does manifest the problem.

    At this point I believe enqueuing is considered the better practice, so simply switching to inserting the link in header.php is not a good option.

    As for your question, when BWP isn’t active there is an additional link element that leads to a standard site stylesheet. When BWP is active there isn’t, there’s a link element with an id of “language-selector-group-css” and one of its parameters includes the path to the theme stylesheet. The url looks like this normally:; but when the language is switched, and extra query parameter is inserted in the wrong place, and breaks it:;

    I hope that helps.


    I have exactly the same problem. Has a solution been found in the meantime?


    Plugin Author Khang Minh


    @konishkichen yes this is a known issue and will be fixed in the next version.

    Fantastic, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Compatibility Issue with Latest Version of WPML’ is closed to new replies.