page-block
Installation
SKILL.md
Page Block Skill
Build and push section-based pages using the Marketers Delight Page Block system (v7.0.0). Page Blocks are reusable HTML/CSS/JS/PHP sections stored in a custom database table (wp_md_page_blocks), embeddable via Gutenberg block picker, shortcode, or positioned on hooks site-wide.
What Is a Page Block?
A Page Block is a reusable content unit stored in wp_md_page_blocks with its own HTML, CSS, JS, and display conditions. It can be used in three ways:
- Gutenberg block — picked from the library in the Block Editor via
marketers-delight/page-block - Shortcode —
[page_block id="123"]or[page_block slug="hero-section"] - Positioned — hooked to a theme action (e.g.,
md_hook_before_header) and conditionally displayed site-wide