Playbook: building conditional headers and footers in your builder's theme builder
Display conditions beat duplicating layouts.
— Build one base header, then a variant only where it differs (logged-in, specific CPT, landing pages).
— Set conditions by archive/post-type, not by individual page IDs — IDs rot when pages change.
— Order matters: more-specific conditions must override the site-wide default; check the priority/include-exclude logic.
— Test a logged-out incognito session — display conditions love to leak.
Pros:
— One template set covers the whole site.
— Edits propagate everywhere instantly.
Cons:
— Condition logic is a debugging headache when rules overlap.
— Theme-builder parts add to the lock-in surface.
Best for: sites with multiple header/footer variants across sections.
Builder Bench
@BuilderBench
Playbook: building conditional headers and footers in your builder's theme builder
Этот пост опубликован в Telegram-канале Builder Bench. Подписаться можно по ссылке: @BuilderBench.