Title: Generateblocks breakpoints
Last modified: March 18, 2021

---

# Generateblocks breakpoints

 *  Resolved [Rostyslav](https://wordpress.org/support/users/rostyk1000/)
 * (@rostyk1000)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/)
 * Hello,
 * How can I change the generateblocks breakpoints for these ones:?
 * [@media](https://wordpress.org/support/users/media/) (max-width: 768px)
 * [@media](https://wordpress.org/support/users/media/) (min-width: 769px) and (
   max-width: 1024px)
 * [@media](https://wordpress.org/support/users/media/) (min-width: 1025px)
 * I tried this code with Code Snippets Plugin and it doesn´t work.
 *     ```
       add_action( 'wp', function() {
           add_filter( 'generateblocks_media_query', function( $query ) {
               $query['desktop'] = '(min-width: 1025px)';
               $query['tablet'] = '(max-width: 1024px)';
               $query['tablet_only'] = '(max-width: 1024px) and (min-width: 769px)';
               $query['mobile'] = '(max-width: 768px)';
   
               return $query;
           } );
       }, 20 );
       ```
   
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgenerateblocks-breakpoints%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14203365)
 * Hi there,
 * That code will work, but you will need to regenerate your CSS files after your
   add it in GenerateBlocks > Settings.
 *  Thread Starter [Rostyslav](https://wordpress.org/support/users/rostyk1000/)
 * (@rostyk1000)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14203432)
 * I want to have the same breakpoints in generateblocks that generatepress has.
 * What CSS should I add to have those breakpoints in my container in generateblocks?
 * Thanks for answering!
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14207791)
 * What you shared should match the breakpoints with GeneratePress – have you given
   it a shot?
 *  Thread Starter [Rostyslav](https://wordpress.org/support/users/rostyk1000/)
 * (@rostyk1000)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14208928)
 * But, where should I paste that code? In generatepress child function.php?
 *  Plugin Support [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14209531)
 * Yup that should work 🙂
 *  Thread Starter [Rostyslav](https://wordpress.org/support/users/rostyk1000/)
 * (@rostyk1000)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14210345)
 * Works!
 * Thank you!
    -  This reply was modified 5 years, 2 months ago by [Rostyslav](https://wordpress.org/support/users/rostyk1000/).
 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14211385)
 * Glad we could help 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Generateblocks breakpoints’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

## Tags

 * [breakpoints](https://wordpress.org/support/topic-tag/breakpoints/)

 * 7 replies
 * 3 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/generateblocks-breakpoints/#post-14211385)
 * Status: resolved