-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Custom CSS: allow option to add for page/post and to any block on page/post #47862
Comments
This should be high priority. Current stateImagine that you know how to use CSS and while creating your content you feel to be 95% close to your goal, but you can’t add that missing piece because “Block”s you are using don’t let you do what you want to achieve. Now you have these choices:
Examine these:
Proposed SolutionCopy what Final Consideration:Adding this feature is good for these reasons: Let user add custom CSS right where it’s used. When that CSS code is not necessary anymore it can be removed safely. (Tailwind approach) If later on, the block receives an updates that add a new feature, and this feature can replace custom CSS , this can be done in an easy way. Could be interesting to “observe” which CSS users add, to understand what they want to achieve and they can not. Thanks to this we can prioritize, and add missing features to core blocks, that are really useful and required.
|
Agreed, although it needs some obvious improvements, such as syntax highlighting and the ability to horizontally increase the size of that editing area (it's annoying trying to type and organize your CSS in such a small box at a sidebar) - perhaps also opening it in a popup. While I consider custom CSS per block a necessary feature to have, I believe that an even higher priority should be custom CSS per post/page. That way you'll have your custom CSS organized in one place, loaded only for that page/post/template, for all of its own blocks, and you'll only have to add classes to those blocks ("via Block > Sidebar > Advanced > Custom CSS Classes"). |
@Louis7777, nothing more, nothing less. |
No progress made on this front. Punting from 6.5. |
Hi folks, |
Why?
This will unleash full creative potential, including the ability to add negative margins (right now, you don’t have the ability to add a negative margins to any element, but they are highly useful for achieving some layouts).
Also, the comments below best describe how important this feature is.
Louis7777 wrote:
@jabe64 wrote:
#30142 (comment)
The text was updated successfully, but these errors were encountered: