“Inner blocks use content width” not working – randomly

  • Unknown's avatar

    I am changing a site from a full-width presentation to a limited width so it controls the space better on very large screens.

    Most problems are with Media & Text blocks and each is inside a Group. If I set the Group “Inner blocks use content width” setting to On and set the Content Width below that setting to 1000 px, some of the Media & Text blocks I do this with will conform to the 1000 px width. However, in several instances this setting apparently refuses to work in that the width stays at 100% of the browser window, in spite of the Inner blocks setting being “On” and the Content width being 1000 px.

    Pages/blocks that have worked ok for this setting are the Group+Media&Text blocks on the “About Me” and “Sessions” pages. One Group amongst these would not obey the narrower width setting. To workaround this I had to re-insert a new Group/Media&text blocks and copy the content in and then delete the block which would not conform.

    However, I am now trying to do the same with the Home page. The make-a-new-group+content worked ok for the header photo (the black and yellowy photo, which is actually a “Cover” inside a Group block) but the next block down (with the blue tinted photo) simply will not conform to the On + 1000 px setting.

    I am still playing with what width I want so may need to change things again so I’d like to understand why these settings are not working, or what I’m doing wrong. I’ve understood that setting this inner blocks control to On and specifying a width overrides the Theme width settings.

    Thanks in advance.

    This site is on a WordPress install on a commercial server, not wordpress.com, and it’s version 6.9 with theme twenty-twentyfive (much modified).

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    p.s. I am clearing caches so I don’t think it’s that

  • Unknown's avatar

    I managed to get it to work by changing the alignment of the Media & Text block, so in some way that stopped over-riding the Group width setting.

    So most of it is now working but the site header won’t obey, now. Again I have a Group in the header but the Inner Blocks On setting + 1000 px won’t work

  • Unknown's avatar

    Sorry for posting to my own thread again but… I randomly got the header inner blocks width control to obey. Doing exactly as I did before when it didn’t work, but after a 45 minute logged out break.

    So all sorted for now, but I would still like to know why. I personally think it’s a bug in Gutenberg. I’ve noticed at other times that setting things like padding or margin will not behave. I think that is because the settings for these start off as “blank” (not zero), so something like eliminating a theme padding won’t work if you simply put in 0px. The workaround is to set the value to a value (e.g. 50 px), Save the page, then go back and set the value to 0 px.

    If anyone has a clue what’s going on, I’d still appreciate knowing, thanks.

Log in or create an account to reply