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

    (@oddoneout)

    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: http://www.example.com/wp-content/plugins/bwp-minify/&#8230; but when the language is switched, and extra query parameter is inserted in the wrong place, and breaks it: http://www.example.com?lang=fr/wp-content/plugins/bwp-minify/&#8230;

    I hope that helps.

    Hi!

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

    Thanks,
    Manu

    Plugin Author Khang Minh

    (@oddoneout)

    @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.