• Hi,
    is there any possibility to adjust the breakpoints for the Generateblocks container? I want the change from mobile to tablet and from tablet to desktop a bit later.

    Thanks,
    Manja

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Alvind

    (@alvindcaesar)

    Hi there,

    Are you referring to a responsive editing control?

    https://docs.generateblocks.com/article/responsive-controls/

    Thread Starter Manja Neumann

    (@tippl)

    No, I want to adjust the breakpoints provided by Generateblocks. For example, the default Generateblocks breakpoint for tablets is 768-1024px, but I need 768-1279px.

    Plugin Support David

    (@diggeddy)

    Hi there,

    you can use the following PHP Snippet:

    add_action( 'wp', function() {
    add_filter( 'generateblocks_media_query', function( $query ) {
    $query['desktop'] = '(min-width: 1280px)';
    $query['tablet'] = '(max-width: 1279px)';
    $query['tablet_only'] = '(max-width: 1279px) and (min-width: 768px)';
    $query['mobile'] = '(max-width: 767px)';

    return $query;
    } );
    }, 20 );
    Thread Starter Manja Neumann

    (@tippl)

    It works.
    Thank you!

    Plugin Support David

    (@diggeddy)

    You’re welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Breakpoints’ is closed to new replies.