Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add WordPress-style body classes to Faust pages

Chiusa
#2,682 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@josephfusco ci sta già lavorando.

Dal 20/10/2026.

  • #2689 di @josephfusco — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

[Area] Core [Type] Enhancement

WordPress themes get classes like home, single-post, postid-123 and logged-in on <body> from body_class(). Faust pages don't, so CSS ported from a theme loses those hooks. The Toolbar already adds admin-bar by hand and notes this could become a Faust hook (Toolbar.tsx).

  • Work out the classes from the seed node Faust already loads, with an opt-in hook such as useBodyClass().
  • Have the Toolbar use it for admin-bar.
  • Matching core's body_class() exactly (including its filters) is out of scope, because that needs WordPress's main query.

Open question: which classes are worth supporting first?

Lingua principale
TypeScript
Stelle
1.6k
Fork
157
Merge medio
1g 1h
PR unite (30g)
137

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wpengine/faustjs

Tutte le issue di wpengine/faustjs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.