Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55427 closed feature request (reported-upstream)

Make .wp-block-post stylable via theme.json

Reported by: clarus-dignus's profile Clarus Dignus Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Themes Keywords:
Focuses: Cc:

Description

I can style various aspects of the Query Loop block via theme.json.

E.g. core/post-template styles .wp-block-post-template, core/post-title styles .wp-block-post-title, etc.

"blocks": {
	"core/post-template": {
		"border": {
			"style": "solid",
			"width": "1px",
			"color": "#000"
		}
	},
	"core/post-title": {
		"border": {
			"style": "solid",
			"width": "1px",
			"color": "#000"
		}
	}
}

However, core/post doesn't style .wp-block-post.

"blocks": {
	"core/post": {
		"border": {
			"style": "solid",
			"width": "1px",
			"color": "#000"
		}
	}
}

.wp-block-post is the container of each post outputted by the Query Loop block, i.e., it contains each post's title, featured image, date, excerpt, etc.

Please make .wp-block-post stylable via theme.json like the elements it's within and elements within it.

Currently, I'm limited to styling .wp-block-template via style.css. One of the downsides of this is that the style doesn't apply in the editor.

core/post isn't a block in the sense that it can be selected and edited via the editor.

Change History (2)

#1 follow-up: @ocean90
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version 5.9.2 deleted

Hello @clarus-dignus, welcome to WordPress Trac!

I see you already have posted this in https://github.com/WordPress/gutenberg/issues/39599 too which is actually the better place for such requests. Thus I'm closing this ticket as reported-upstream.

#2 in reply to: ↑ 1 @Clarus Dignus
2 years ago

Replying to ocean90:

Hello @clarus-dignus, welcome to WordPress Trac!

I see you already have posted this in https://github.com/WordPress/gutenberg/issues/39599 too which is actually the better place for such requests. Thus I'm closing this ticket as reported-upstream.

Thanks.

Note: See TracTickets for help on using tickets.