Web Analytics

Fill the form & Get Installation Support

Magento 2: How to change main container max-width using less?

Generally, you can see luma theme container’s max-width is: 1280px

So in case, if you wish to change the main container max-width in your theme, Just override _theme.less file in your theme web/css/source/ folder and change max-width in below less variable. You don’t need to disturb any other CSS.

Note: I have tried the above solution in Magento 2.3.* and 2.4.* and I have made a custom theme based on the luma theme. It worked for me.

Hope the above solution will also help you in your programming journey.

Fill the below form if you have any Magento programming need.

    Recent Articles

    Author Info

    Author Image

    Magento Developer

    Hire T. Baldha

    Get a Free Quote

      /* second popup */

      Connect With Us