Feature suggestion – Block width setting
-
Hi,
I use various themes such as the great GeneratePress.
One reason I like this theme is that it adds selections in the post editor to have no sidebars and a full width.
This is great for front and landing pages.
Then if I add a WP core Cover block, it stretches 100% across the browser window, which is what I want. Say 1900 px wide.
The Cover block is a nice way to have a banner image and text at the top of the page.
Then, below this Cover block, I need blocks to respect the theme width. Eg this could be set at 1200 px.
Some block plugins respect this theme width – some block plugins have a setting to choose which width you want to use. Some block plugins by default respect the theme width. So if I add a block they are automatically or can be set to display at theme width.
When I try your Section block it does not seem to have a width setting and it will stretch across the full width of the screen. This means I can only use it for a Cover-like block.
I tried some other templates and they seem to behave the same way.
One work-around is to use a Column/Section block with one column in it and set the block to 1200 px width, with eg 50 px margins, and put all blocks inside this one col, one above the other.
But I cannot do that with your Section block since it does not seem to have a width setting. (Please let me know if I am not seeing it).
So I cannot use your plugin on full width pages. On normal pages with a sidebar I am sure the plugin is fine.
I would like to suggest that you have a setting per block for width, or have each block do it automatically, so that the block’s width is 100% of the theme, not page.
One block plugin actually has a setting for width called “Use theme width” which is very handy.
- The topic ‘Feature suggestion – Block width setting’ is closed to new replies.