Skip to content
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

Allow custom CSS for theme.json templates+template parts #52304

Open
ghost opened this issue Jul 5, 2023 · 1 comment
Open

Allow custom CSS for theme.json templates+template parts #52304

ghost opened this issue Jul 5, 2023 · 1 comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.

Comments

@ghost
Copy link

ghost commented Jul 5, 2023

What problem does this address?

This is a minor inconvenience, but it means one will have to remember where CSS is allowed and not 😅
Theme.json does not allow CSS in templates and templatet parts, which means one can't do something like

 "customTemplates": [
 	{
 		"name": "blog",
 		"postTypes": [
 			"post"
 		],
 		"title": "Blank",
 		"css": "transition: all 1.1s ease;"
 	},

Instead, one would need to add it to CSS directly under styles and add the selector for the template or template part.

What is your proposed solution?

Allow custom CSS for theme.json templates+template parts.

@ghost
Copy link
Author

ghost commented Jul 5, 2023

Hey @carolinan , inspired on your issue: #48439

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Jul 5, 2023
@annezazu annezazu added the Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json label Aug 30, 2023
@annezazu annezazu moved this to Needs Dev / Todo in WordPress 6.4 Editor Tasks Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Global Styles Anything related to the broader Global Styles efforts, including Styles Engine and theme.json [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants