Skip to content

Expanding Browser Support with Respond.js

Sal Ferrarello edited this page Mar 7, 2016 · 1 revision

Out of the box Bootstrap Genesis is not shipped with respond.js, which allows media queries in IE6-8.

Adding Respond.js with a Plugin

The Respond.js plugin will load Respond.js on your site.

Adding Respond.js Manually

You can also manually add respond.js from a third-party CDN with the following

function bsg_enqueue_respond_js()  {
    wp_enqueue_script( 'respond',
        'https://cdn.jsdelivr.net/respond/1.4.2/respond.min.js',
        array(),
        false,
        false
    );
    wp_script_add_data( 'respond', 'conditional', 'lt IE 9' );
}
add_action('wp_enqueue_scripts', 'bsg_enqueue_respond_js');

If you download a local version of respond.min.js you can change the source URL to point to your local version.