• Resolved accend4web

    (@accend4web)


    Hi,

    I want to change the breakpoint on my site from its default to something higher, possibly around 900px.

    I have created a child theme so have the child style sheet, so is there a chunk of code that I can simply drop into style.css in the child folder, to allow this to happen.

    This seems like something that could be added to ‘Settings’ possibly, as a functionality to allow users to change the breakpoint as they need to.

    Cheers

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @accend4web,

    I want to change the breakpoint on my site from its default to something higher, possibly around 900px.

    You can try the following code:

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

    with adjusting the $px number to the number you would like. Let us know how it goes!

    Thread Starter accend4web

    (@accend4web)

    Hi sorry for the really delayed reply, but just tried this by adding it to my child functions.php file and was excited as it would solve a lot of issues, and unfortunalty it didnt work.

    • This reply was modified 7 years, 7 months ago by accend4web.

    Hi, just wanted to chime in and let you know I also can’t get @nixiac8’s code to work. Tried in the child theme functions.php with no effect, and in the master theme, it gives us a 500.

    Cheers

    Edit: I should say we’re using 2.3.5 on 4.9.8.

    • This reply was modified 7 years, 7 months ago by unexploded.
    Job a11n

    (@jobthomas)

    Automattic Happiness Engineer

    Hey @unexploded and @accend4web – the filter @nixiack8 shared is no longer working for Storefront. The only way to change the breakpoints is to do this manually. You can follow a discussion on this topic here.

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

The topic ‘mobile menu breakpoint’ is closed to new replies.