creativecommons / creativecommons/creativecommons-base

RFC: switch "featured content" and "donate" features to be generic WordPress block areas

Open
#105 0 comments 0 reactions 0 assignees View on GitHub
✨ goal: improvement 🏁 status: ready for work 💻 aspect: code 🕹 aspect: interface 🤖 aspect: dx 🟨 priority: medium
Dominant language
PHP
Stars
11
Forks
19
PR merge metrics
No merged PRs in 30d

Description

## Problem

The `creativecommons-base` theme currently defines theme configuration forms and templates for two specific components:
- featured conetent
- donation appeal

However, the hard-coded nature of these templates may be inflexible while introducing a maintenance burden to the project.

## Description

Consider creating two generic theme block areas, such as `below_header` and `above_footer` wherein we can place Gutenberg blocks. For example, there can be a separate project for CC-specific Gutenberg blocks such as a Donation Appeal Block and a Featured Content Card block.

## Additional context

WordPress 5.8 allows developers to define template regions that can contain Gutenberg blocks.
![image](https://user-images.githubusercontent.com/17307/126799011-30df665c-7bcc-498d-9e13-10cea5cf1fad.png)
![image](https://user-images.githubusercontent.com/17307/126799207-b395c7f2-8665-459c-8509-3411695823c8.png)

- https://make.wordpress.org/core/2021/06/29/block-based-widgets-editor-in-wordpress-5-8/
- https://jbaker.media/blog/using-block-areas-with-wordpress-gutenberg/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.