Hi friech, and thanks for the quick response! We were hoping to have our menu usable even on a phone, which is probably not uncommon, so it would be very nice to have a custom Cornerstone preview that we could set to 320px to be sure our site looks good on most phones.
I had done a menu above in the XS setting of Cornerstone thinking it would look good on phones, only to find that the menu had stacked into three clumsy rows when I actually viewed it on my phone (see Customizer view above for similar.) Feature request: I think it would be great if there was a sixth “Custom” size that users could set.
I reviewed the article you linked to, which describes how to change the default sizes in the Customizer, but your text suggests that changing the default is not a good idea in Cornerstone. After experimenting with workarounds (see below) I think I may be ready to adjust the default anyhow as 320px is our second most critical size and we aren’t getting a helpful preview without going to the customizer.
If I wanted to change the width of the XP preview, how might I do it?
I truly do appreciate the help, and very much appreciate the code on how to add another breakpoint for smaller widths! And I don’t mean to sound argumentative, but I am ok with the 480 breakpoint, I just want to preview it at 320px as if it looks good there it will be fine up to 480, but the reverse is certainly not true.
Also, for others reading this, I learned that iPhones 6 and later in zoom mode (as mine was) also display at 320px so that might still be a relatively common size. Oddly I could not find good statistics on percentages of mobile screens at various sizes as are available for desktops.
Finally, the best narrow screen preview workaround I have found is to use developer tools on the Chrome browser:
- While in Cornerstone, right-click on the preview page and select Inspect (at bottom) to open the Chrome Developer Tools
-
Toggle device toolbar on if necessary (Second icon from left at top of toolbar)
- Select Edit from the device drop-down at the far left of the device toolbar
- Click the Add New Device button, name, and adjust as required. These settings may vary based on your monitor display scaling settings. On my laptop a setting of 660 x 530 provided space for the Cornerstone menu at left and a 320 x 530 view that perfectly matches my zoomed iPhone 6 on the right.
-
Save the settings, then you can restore them from the drop-down at any time.