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

Selectable Background for Query Loop Post Template #35276

Closed
HairyCream opened this issue Sep 30, 2021 · 2 comments
Closed

Selectable Background for Query Loop Post Template #35276

HairyCream opened this issue Sep 30, 2021 · 2 comments
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.

Comments

@HairyCream
Copy link

## What problem does this address?

As of WP 5.8.1 with Gutenberg Plugin 11.6 the options to customise the layout of the Query Loop Post Template are limited.

For example, the following Query Loop would display the Post Featured Image, Post Title, Post Excerpt inline.

image

I would like the Post Title and Post Excerpt to overlay the Post Featured image. This is a common design available with plugins, or could also be achieved with custom CSS.

## What is your proposed solution?

I suggest the Post Template block could have a Background option added, allowing the Featured Image to be selected. or other background options, such as color.

This is a similar suggestion to #24660 although that discusses a similar option for the Group block.

Although a slightly different issue, I feel having a Link To Post option at the Post Template level would improve the user experience.

@HairyCream HairyCream changed the title Seelectable Background for Query Loop Post Template Selectable Background for Query Loop Post Template Sep 30, 2021
@paaljoachim paaljoachim added [Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement. labels Oct 1, 2021
@paaljoachim
Copy link
Contributor

That sounds like a very good idea @HairyCream Mike! Thank you for adding it!

I will ping Nik @ntsekouras so that he can take a look.

@ntsekouras
Copy link
Contributor

👋 thanks for creating the issue @HairyCream !

I could also see that you found the relevant issue about this and this is great, but we can close this in favor of the existing one. The approach should be more generic as is described in a comment there: #24660 (comment)

I don't think this is the right approach (the group block). I think it should be baked into background tools for any block. I also don't know if it should be abstracted to any dynamic property, at least not in UI. It could be as simple as a toggle on the background options (solid, gradient, image, video, featured image).

There's been some discussions about allowing other properties (like text) to bet set to an entity (pos title). But that also proved to be maybe not necessary if you can just insert a post title block anywhere (within a cover block, etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants