WordPress / wporg-parent-2021

17 stars 10 forks source link

Update posts and archives templates #88

Closed ryelle closed 1 year ago

ryelle commented 1 year ago

See https://github.com/WordPress/wporg-main-2022/issues/266 — Rosetta sites use posts, so before rolling out the main theme, it needs to support posts & archives. This PR cleans up the templates, and moves some of the content out of the HTML templates into translatable php patterns.

Screenshots

Before (large) Before (small) After (large) After (small)
/news/ before-news before-news-small after-news after-news-small
Category before-category before-category-small after-category after-category-small
Single before-single before-single-small after-single after-single-small

How to test the changes in this Pull Request:

  1. Sync this branch to a sandbox, optionally plus this wporg-main-2022 PR (will add the local header).
  2. Update mu-plugins/rosetta-network/2022-theme-switcher.php to enable the new theme — use this file, which also updates the Latest News block on the homepage.
  3. View any rosetta site's /news/ and click around though posts. For example
  4. It should look good 🙂