Hi I would like to set custom width to 1900px for container block. But this is imposible. If i set 1900 it is not saving. I can save only 1600px and below. Why is that?
This topic was modified 3 years, 5 months ago by manx89.
this is not what i mean :). I want to set custom width for container width. But i can set max only to 1600px (Screen below). I found that blocks.js in plugin files contain code that is responsible for that. Is there any method to change this max value other than changing this file?
You can as well use a filter to adjust the content width. You can add the filter below in the child theme’s functions.php and adjust it to the width you would want as the default width:
I am Astra theme user, so I dont need to add this code. But still this is not this. I am naot talking about default container width. I am talking about max value for custom container width. I can set maximum 1600px, but I need more. I changed blocks.js and replace 1600px to 1920px, but this is not good solution. Because after update will by 1600px. Or maybe you can set unlimit pixels for that in next update?
I am so sorry for the confusion, I believe you may not be getting clarity from my explanation, so I made a brief screencast explaining how you can make these changes.
Please let me know whether this gives clarity.
If not please let us we will ne happy to dig in abit further.