Skip over navigation
You are currently viewing documentation for a previously released version of OroCommerce. See the latest long-term support version.

How to Change Media Breakpoints in Storefront

To update media breakpoints, change the next breakpoints:

// Desktop Media Breakpoint;

$breakpoint-desktop: 1100px;
$breakpoint-tablet: $breakpoint-desktop - 1px;
$breakpoint-tablet-small: 992px;
$breakpoint-mobile-landscape: 640px;
$breakpoint-mobile: 414px;
$breakpoint-mobile-big: 767px;

To add, update media queries theme developer must create files with global-settings your-theme/settings/global-settings.scss and update list with custom breakpoints.

$custom-breakpoints: (
    'my-custom-breakpoint': __your-rule__, //  add a new rule
    'desktop': __your-rule__,              // update an existing rule

$breakpoints: merge-breakpoints($oro_breakpoints, $custom-breakpoints) !default;

To disable some media query theme developer must set breakpoint to null

$custom-breakpoints: (
    'desktop': null                        // disable an existing rule

$breakpoints: merge-breakpoints($oro_breakpoints, $custom-breakpoints) !default;


You have to put this code into your own settings/global-settings.scss file as described in the CSS Files Structure article.

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No