Viewing 13 replies - 1 through 13 (of 13 total)
  • Thanks!!!

    • This reply was modified 3 years, 11 months ago by tinerama.
    Thread Starter raachotrekkers

    (@raachotrekkers)

    Is it doable without a plugin?

    Moderator James Huff

    (@macmanx)

    There is a ton of variable width work in the theme, which makes overriding this via simple CSS very difficult and possibly incompatible with the theme’s responsive nature.

    As someone who loves directly tinkering with themes myself, I strongly recommend using the plugin recommended above.

    Thread Starter raachotrekkers

    (@raachotrekkers)

    Okay, thanks.

    As James says, it’s not straight forward! That being said, if you really want to get your hands dirty with your own CSS, this is what you want …

    @media only screen and (min-width: 482px) {
    	:root {
    		--responsive--aligndefault-width: min(calc(100vw - 4 * var(--global--spacing-horizontal)), 610px);
    	}
    }
    @media only screen and (min-width: 822px) {
    	:root {
    		--responsive--aligndefault-width: min(calc(100vw - 8 * var(--global--spacing-horizontal)), 610px);
    	}
    }

    The “–responsive–aligndefault-width” variable is then used to set the max-width of the “aligndefault” blocks. So increasing the “610px” to your desired max-width amount will do what you require.

    Hope that helps ??

    Oliver

    thank you

    hey @macmanx
    I’m also trying to do full width.

    Do you still recommend the ‘Options for Twenty Twenty-One’ vs, say, group block set to full or twentig?

    I’m totally lost after hours of messing around, and figure you probably are the best personto ask.

    Moderator James Huff

    (@macmanx)

    If the block you’re using supports full width (not all do), go with that.

    Otherwise, use https://www.ads-software.com/plugins/options-for-twenty-twenty-one/

    Hello,
    I’d love some help, if you have the time!
    I’ve struggled for the last four hours to make my blocks full-width in twenty twenty-one. I’ve used my own knowledge of CSS, tried using the plugins mentioned above, used many kinds of blocks, but nothing is working. I don’t have any pluggins that are obviously interferring. I am using the “stackables” plugin, which should play just fine with the theme.
    The site is herbscript.net Of course, I am choosing “full-width” in the alignment selector.
    Any thoughts appreciated!
    Best Regards.

    Moderator James Huff

    (@macmanx)

    Since Stackable controls the layout, I recommend asking at https://www.ads-software.com/support/plugin/stackable-ultimate-gutenberg-blocks/ so the plugin’s developers and support community can help you with this.

    Also, in the future, please open your own thread instead of jumping into someone else’s 7-month-old thread.

    Will do, thanks

    I created an account just to say,

    1. I had this same need

    2. The plug was very helpful, thank you for pointing it out

    3. shame on wordpress for publishing something where the only way to fix this basic is to either horse around in CSS or install a plugin. Appalling.

    Moderator James Huff

    (@macmanx)

    Just to answer to point 3 you made, the concept of the default theme is to provide an easy out-of-the-box theme for folks just starting out.

    We don’t want folks paralyzed (or abandoning WordPress) by encountering too many choices right when they start.

    Excellent developers like Oliver usually make some great plugins to extend the default themes, and there are of course thousands of other themes to choose from.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Change container width in 2021 theme’ is closed to new replies.