• Resolved jvwissen

    (@jvwissen)


    I’m having an issue with autoptimize plugin and responsive websites loading css with media queries like media=”screen and (max-width: 940px)”

    The media tag is split on the space and thus only the ‘screen’ word is used and not the whole string.

    When changing line 47 in the classes/autoptimizeStyle.php file from:

    $media[] = current(explode(' ',trim($elem),2));

    to:

    $media[] = $elem;

    the media tags are correct.

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoptimize and Media Queries’ is closed to new replies.