• I would like to create a variation of the media and text block that is the same width as the rest of the content on the page instead of being wide or full. I would also like to have the original wide/full media and text block in addition to this, but I’d like to have the option to make it normal width as well.

    How would I add this functionality to the existing block or create a variation of the block to accomplish it?

    Note: I realize it would theoretically be possible to do this purely with CSS, but this would not be ideal. As is, the media and text block adds the alignwide class to the div, so accomplishing this purely with CSS would mean that the div still had the alignwide class, but wasn’t actually aligned wide. That’s why I would like to modify this in the block itself to prevent the alignwide class from being added in the first place.

    I also realize it would be possible to simply use the columns block to approximate what a normal-aligned media & text block would look like, but I would like to specifically create a normal-width variation of the media and text block, not use another block to approximate it.

    Thanks in advance for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Paal Joachim Romdahl

    (@paaljoachim)

    Hi Austin

    Let’s see if I understood this correctly.
    You want the Media & Text block to be the same width as the rest of the content.
    1. Select and turn off Width width. You should now see the normal width of the content.

    I went ahead and made an issue on Github. You can also see the screenshots of what I just mentioned. https://github.com/WordPress/gutenberg/issues/20941

    Thread Starter Austin M – a11n

    (@apmwebdev)

    Hi Paal! Thank you so much for your response! I can’t believe it was that easy. I didn’t realize you could unselect a width and put it back to normal width that way. I took a look at the GH issue you posted, and I think it is a great idea to have “normal width” be an explicit option instead of relying on unselecting a width. Thanks again!

    Plugin Support Paal Joachim Romdahl

    (@paaljoachim)

    Hey Austin

    You’re welcome!
    Do add a comment to the Github issue as it brings in some view points from someone outside the Gutenberg bubble..:)

    You can also close this issue.

    Plugin Support Paal Joachim Romdahl

    (@paaljoachim)

    I now have support privileges so I will go ahead and mark this issue as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make media and text block normal width (not wide or full)’ is closed to new replies.