Skip to main content

4. Elements Module (GP Premium)

Elements are the power feature: conditional components that let you customize without editing theme templates.

What You'll Be Able To Do

  • Create Hook Elements for targeted output
  • Build conditional page sections with Block Elements
  • Control layout changes with Layout Elements
flowchart TD
A[Element] --> B[Location]
B --> C[Display rules]
C --> D[Rendered output]

Lessons

LessonOutcome
OverviewUnderstand what Elements are and when to use them
Hook ElementsInject targeted output using hooks and rules
Block ElementsBuild reusable sections with block-based Elements
Layout ElementsApply conditional layout changes
Header ElementsCreate conditional headers and hero regions

Completion Checklist

CheckDone when...
HooksYou can inject markup without duplicates
RulesDisplay rules follow a predictable stack
MaintenanceElements are named and scoped clearly

What's Next