• Resolved manx89

    (@manx89)


    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 2 years, 1 month ago by manx89.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @manx89,

    Thanks for writing to us.

    Please head to Settings/Spectra/Settings/Editor Options then you can adjust from here: https://share.getcloudapp.com/z8ul2Lb7.

    Please let us know whether you have any other queries.

    Regards.

    Judith.

    Thread Starter manx89

    (@manx89)

    Hi,

    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?

    Hello @manx89,

    Thanks for writing back.

    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:

    add_filter(\’spectra_global_content_width\’, function($width) {
    return 1620;
    });

    Please refer to this guide:https://wpspectra.com/docs/spectra-default-content-width/.

    I hope this helps, please let me know whether I missed something, and I will be glad to relook.

    Regards.

    Judith.

    Thread Starter manx89

    (@manx89)

    Hi,

    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?

    Hello @manx89,

    Thanks for writing back.

    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.

    Regards.

    Judith.

    Hello @manx89,

    It’s been a while since we heard from you. I am going to mark this as resolved.

    Please feel free to open a new thread in case of any other queries.

    Regards.

    Judith.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Set custom width to Container block’ is closed to new replies.