-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wide and full alignment for paragraph block may be needed again. #31429
Comments
I'm curious what the confusion with having P blocks with wide/full alignment (as referenced here: #9597 ). And what's the justification for having Heading and Paragraph blocks treated differently? |
can we just expand this to add or have the option to add the wide/full alignments on all blocks? by choosing to only have this on some blocks, WP is basically deciding how you should setup your themes front end block layouts, only without providing any suggestions. if you were to add an align-wide block group and inside it you had a blockquote, it is forced to your narrow wrapper, with no way to make it wide, without just simply adding the alignwide class to it! my block layout works perfect except for this super frustrating fact I have to manually add classes. I used the register block styles to add the align wide class to my blocks that are missing it. then I have to add the .is-style-alignwide class to my styles also, but at least clients can layout the blocks how they need.
|
What @nickfmc posted with having a style option for alignwide works for some cases, but unfortunately it doesn't work if you already have another style option you are trying to use on that element, since only one style option can be selected at a time. :( |
don't get me started on one style option! lol I've done that before too, had to do "align wide style one" "align wide style two" . |
This is definitely a needed feature. Doesn't make sense why the paragraph block doesn't have alignment settings. |
I don't quite understand why you can't make the paragraph block align wide. I'm a user. I want to add a Heading and a subtitle/paragraph. I want to do this in the template parts area. I add a Heading Block and a Paragraph Block. I group them. I set Heading to alignwide, I can't set Paragraph to alignwide. Really? You can if you add a column block and add a paragraph tag inside a column, and you set the Column block to alignwide, but this seems a bit crazy. |
In case it helps someone, you can get around this by having a group block within a group block. Group your group, then set the child group block to be align wide. Paragraph tags inside that block will now all be wide width. |
Yeah that's a valid method and what I normally end up doing. Just annoying to have to do that. |
Paragraph block really should also include alignment controls just like the Heading block. As it creates consistency between two text focused blocks. |
I had a client ask me. How can I add wide to the Paragraph block just like the Heading block? I had to say that it is not yet possible.... then say I do not know why one can add wide to Heading and not the Paragraph block. |
Is this feature planned/on the roadmap? If not, any good reason why? I keep coming across the need for this and am surprised this issue is 3 years old (maybe there's a more recent solution I'm unaware of?). |
With @aristath work on this ticket #25160 I think we need to consider theme developers that use this type of CSS for block alignment. A big issue we have now is nesting paragraphs/headings. You may have a situation where you have a block that is full width and has a bg color on it and inside that you might want to put a paragraph that is aligned wide. Well with this setup your paragraph will go to the smallest declared wrapper size, I'm constantly adding align-wide and align-full classes to my paragraph blocks manually right now to get past this. It doesn't need to be on by default, just a way to declare that you want wide and full alignment available on all blocks.
GB is assuming that all theme developers are using the same CSS for block alignment but do not give a default standard that everyone should be using.
The text was updated successfully, but these errors were encountered: