Latest Posts Widget: Adding class for the title #20618
Labels
[Block] Latest Posts
Affects the Latest Posts Block
[Type] Enhancement
A suggestion for improvement.
It looks like all sections in this widget have a special CSS class except the title. Here is a screenshot:
It would be great if the title had a CSS class as well. For example,
wp-block-latest-posts__post-title
Currently, we need to use these CSS selectors to make style changes for the title:
.wp-block-latest-posts li > a
By having a special CSS class for the title, we can avoid have long selectors when styling the title in the Latest Posts widget.
WordPress version: 5.4-RC1-47424
The text was updated successfully, but these errors were encountered: