Skip to content

edit Storefront css media queries breakpoints from the child theme #991

@louisdoe

Description

@louisdoe

Hi,

I use Storefront as a base theme to develop child themes.
It'd be really useful to be able to change the css breakpoint for small screen from the functions.php instead of having to recompile the SASS.
For example, the css breakpoint is hardcoded as min-width: 768px but if you need to display the mobile layout on an ipad for instance, you have to move this value.

Something like this Woocommerce hook would be nice:

add_filter('woocommerce_style_smallscreen_breakpoint','woo_custom_breakpoint');
function woo_custom_breakpoint($px) {
$px = '769px';
return $px;
}

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions