Theme Blocks
Theme blocks are specifically designed for building themes and managing site-wide elements like navigation, headers, footers, and post templates.Site Identity Blocks
Site Title
Name:core/site-title
Description: Displays the name of this site. Update the block, and the changes apply everywhere it’s used.
Attributes
level(number) - Heading level (1-6)levelOptions(array) - Available heading levelsisLink(boolean) - Link to homepagelinkTarget(string) - Link target
Supports
- Align: wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
- Interactivity: clientNavigation
Site Tagline
Name:core/site-tagline
Description: Describe in a few words what this site is about.
Attributes
level(number) - Heading levellevelOptions(array) - Available heading levels
Supports
- Align: wide, full
- Color: background, text, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Site Logo
Name:core/site-logo
Description: Display an image to represent this site. Update this block and the changes apply everywhere.
Attributes
width(number) - Logo widthisLink(boolean) - Link to homepage, default: truelinkTarget(string) - Link targetshouldSyncIcon(boolean) - Sync with site icon
Supports
- Align: left, center, right
- Color: (text and background disabled)
- Filter: duotone
- Spacing: margin, padding
- Interactivity: clientNavigation
Usage
Navigation Blocks
Navigation
Name:core/navigation
Description: A collection of blocks that allow visitors to get around your site.
Attributes
ref(number) - Navigation menu reference IDtextColor(string) - Text color slugbackgroundColor(string) - Background color slugoverlayMenu(string) - Overlay menu mode (always, mobile, never)overlayBackgroundColor(string) - Overlay background coloroverlayTextColor(string) - Overlay text colorhasIcon(boolean) - Show menu iconicon(string) - Menu icon typeshowSubmenuIcon(boolean) - Show submenu indicatorssubmenuVisibility(string) - Submenu visibility behaviormaxNestingLevel(number) - Maximum nesting leveltemplateLock(string|false) - Template locking
Supports
- Align: wide, full
- Layout: default, allowSizingOnChildren
- Spacing: blockGap
- Typography: fontSize, lineHeight
- Interactivity: true
- ariaLabel: true
- Allowed Blocks: core/navigation-link, core/search, core/social-links, core/page-list, core/spacer, core/home-link, core/icon, core/site-title, core/site-logo, core/navigation-submenu, core/loginout, core/buttons
Usage
Navigation Link (Custom Link)
Name:core/navigation-link
Description: Add a page, link, or another item to your navigation.
Attributes
label(string) - Link texturl(string) - Link URLtitle(string) - Link title attributekind(string) - Link kind (post-type, custom, taxonomy)type(string) - Link typeid(number) - Referenced object IDopensInNewTab(boolean) - Open in new tabrel(string) - Link rel attributedescription(string) - Link descriptionisTopLevelLink(boolean) - Top-level menu item
Supports
- Parent: core/navigation
- Typography: fontSize, lineHeight
- Interactivity: clientNavigation
- Renaming: false
- Reusable: false
Post Template Blocks
Query Loop
Name:core/query
Description: An advanced block that allows displaying post types based on different query parameters and visual configurations.
Attributes
queryId(number) - Unique query IDquery(object) - Query parameters:perPage(number) - Posts per pagepages(number) - Number of pagesoffset(number) - OffsetpostType(string) - Post typeorder(string) - Sort order (desc, asc)orderBy(string) - Sort by (date, title, etc.)author(string) - Author IDsearch(string) - Search termexclude(array) - Excluded post IDssticky(string) - Sticky posts handlinginherit(boolean) - Inherit query from templatetaxQuery(object) - Taxonomy query parameters
tagName(string) - HTML tagnamespace(string) - Query namespaceenhancedPagination(boolean) - Enable enhanced pagination
Supports
- Align: wide, full
- Layout: true
- Interactivity: true
Usage
Post Template
Name:core/post-template
Description: Contains the block elements used to render a post.
Supports
- Ancestor: core/query
- Align: wide, full
- Color: background, text, link, gradients
- Layout: true
- Spacing: margin, padding, blockGap
- Typography: fontSize, lineHeight
- Reusable: false
Post Content
Name:core/post-content
Description: Displays the contents of a post or page.
Attributes
tagName(string) - HTML tag (div, section, etc.)
Supports
- Align: wide, full
- Background: backgroundImage, backgroundSize
- Color: background, text, link, heading, gradients
- Dimensions: minHeight
- Layout: true
- Spacing: margin, padding, blockGap
- Typography: fontSize, lineHeight
Post Title
Name:core/post-title
Description: Displays the title of a post, page, or any other content-type.
Attributes
level(number) - Heading level, default: 2levelOptions(array) - Available heading levelsisLink(boolean) - Link to postlinkTarget(string) - Link targetrel(string) - Link rel attributeplaceholder(string) - Placeholder text
Supports
- Align: wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Post Featured Image
Name:core/post-featured-image
Description: Display a post’s featured image.
Attributes
isLink(boolean) - Link to postlinkTarget(string) - Link targetrel(string) - Link rel attributeaspectRatio(string) - Aspect ratiowidth(string) - Image widthheight(string) - Image heightscale(string) - Object-fit valuesizeSlug(string) - Image sizedimRatio(number) - Overlay opacityoverlayColor(string) - Overlay color slugcustomOverlayColor(string) - Custom overlay colorgradient(string) - Gradient presetcustomGradient(string) - Custom gradientuseFirstImageFromPost(boolean) - Fallback to first image in content
Supports
- Align: left, center, right, wide, full
- Filter: duotone
- Spacing: margin, padding
- Shadow: true
Post Date
Name:core/post-date
Description: Display a custom date.
Attributes
format(string) - Date formatisLink(boolean) - Link to postdatetime(string) - ISO 8601 datetimetextAlign(string) - Text alignment
Supports
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
Post Excerpt
Name:core/post-excerpt
Description: Display the excerpt.
Attributes
textAlign(string) - Text alignmentmoreText(string) - “Read more” textshowMoreOnNewLine(boolean) - Show link on new lineexcerptLength(number) - Excerpt length in words
Supports
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textColumns
Post Author Name
Name:core/post-author-name
Description: The author name.
Attributes
isLink(boolean) - Link to author archivelinkTarget(string) - Link target
Supports
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Post Terms
Name:core/post-terms
Description: Post terms.
Attributes
term(string) - Taxonomy to display (category, post_tag, etc.)separator(string) - Term separator, default: ’, ’prefix(string) - Text before termssuffix(string) - Text after terms
Supports
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Comment Blocks
Comments
Name:core/comments
Description: An advanced block that allows displaying post comments using different visual configurations.
Attributes
tagName(string) - HTML taglegacy(boolean) - Use legacy comment form
Supports
- Align: wide, full
- Color: background, text, link, heading, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
Comment Template
Name:core/comment-template
Description: Contains the block elements used to display a comment.
Supports
- Parent: core/comments
- Align: true
- Spacing: margin, padding
- Typography: fontSize, lineHeight
- Reusable: false
Comment Author Name
Name:core/comment-author-name
Description: Displays the name of the author of the comment.
Attributes
isLink(boolean) - Link to author URLlinkTarget(string) - Link target
Supports
- Ancestor: core/comment-template
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Comment Content
Name:core/comment-content
Description: Displays the contents of a comment.
Supports
- Ancestor: core/comment-template
- Color: background, text, link, gradients
- Spacing: padding
- Typography: fontSize, lineHeight, textAlign
Comment Date
Name:core/comment-date
Description: Displays the date on which the comment was posted.
Attributes
format(string) - Date formatisLink(boolean) - Link to comment
Supports
- Ancestor: core/comment-template
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Comments Form
Name:core/post-comments-form
Description: Display a post’s comments form.
Supports
- Color: background, text, link, heading, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight, textAlign
Other Theme Blocks
Avatar
Name:core/avatar
Description: Add a user’s avatar.
Attributes
userId(number) - User IDsize(number) - Avatar size in pixels, default: 96isLink(boolean) - Link to user profilelinkTarget(string) - Link target
Supports
- Color: (background and text disabled)
- Filter: duotone
- Spacing: margin, padding
Breadcrumbs
Name:core/breadcrumbs
Description: Display a breadcrumb trail showing the path to the current page.
Attributes
separator(string) - Breadcrumb separatorshowHomeItem(boolean) - Show home linkshowCurrentItem(boolean) - Show current pageshowOnHomePage(boolean) - Show on homepageprefersTaxonomy(string) - Preferred taxonomy for hierarchical posts
Supports
- Align: wide, full
- Color: background, text, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
Login/Logout
Name:core/loginout
Description: Show login & logout links.
Attributes
displayLoginAsForm(boolean) - Display as inline formredirectToCurrent(boolean) - Redirect to current page after login
Supports
- Color: background, link, gradients
- Spacing: margin, padding
- Typography: fontSize, lineHeight
Template Part
Name:core/template-part
Description: Edit the different global regions of your site, like the header, footer, sidebar, or create your own.
Attributes
slug(string) - Template part slugtheme(string) - Theme identifierarea(string) - Template area (header, footer, uncategorized)tagName(string) - HTML tag
Supports
- Align: true
- Interactivity: clientNavigation
- Renaming: false
- Reusable: false
Usage
Best Practices
- Site identity - Use Site Title, Site Tagline, and Site Logo together in headers
- Navigation structure - Keep navigation hierarchies shallow (2-3 levels max)
- Query performance - Limit posts per page in Query Loop blocks
- Template organization - Use Template Part blocks for reusable header/footer sections
- Post templates - Combine Post Template with Post Title, Post Featured Image, Post Excerpt
- Comment moderation - Style comment blocks to match your theme design
- Breadcrumbs - Place breadcrumbs above page titles for better navigation
- Responsive navigation - Use overlayMenu: ‘mobile’ for better mobile experience