Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No ability to set manual limits for paragraph block's “Custom Size” option slider #8369
Currently as of Version 3.4.0 a user can slide the Custom Size slider from 12px to 100px and there appears to be no documented way limit or change this range for theme or plugin developers.
It is useful to give some granular control to content creators but there is no practical reason why a paragraph should be increased to 100px on an informational page.
Just as we can create custom settings for the Small, Medium, Large buttons we should be able to manually set the font-size range from 16px - 32px; and go beyond 100px or below 12px.
Ideally we should also be able to customize or disable any sub component without blacklisting the entire block. Whether it's the preset buttons, custom font size slider or setting a drop cap.
See forum support ticket for additional details at https://wordpress.org/support/topic/how-to-limit-paragraph-custom-size-options/
changed the title from
No Ability to set manual limits for Paragraph Blocks “Custom Size” Option slider
No ability to set manual limits for paragraph block's “Custom Size” option slider
Aug 1, 2018
@chrisvanpatten This sounds like I could do this already? Gutenberg still confuses me, could you point me into a direction on how to approach this?
What I'd love to do is: give the editor only ONE dropdown (or set of radio buttons or whatever) where he can choose between 4 different paragraph styles, which does nothing more than giving the resulting paragraph a different class for the frontend. No color, drop cap, sizes etc.
(I remember reading something about altering / restricting the paragraph block .. but this was back in June and is probably outdated anyways)
Docs for disabling custom font and registering your own set is under
Below are some code examples that worked as of October 18, 2018 tested in WordPress 4.8 with Gutenberg 4.0 in Desktop Sever
Thank you everyone for helping me work through this issue. I really appreciate it.
Sorry for the late reply, I'm closing this as solved.