| 开发者 | godevs |
|---|---|
| 更新时间 | 2026年8月24日 05:42 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<details>/<summary> accordion with FAQ schema.org markup support--gb-* prefix)role="tablist", role="tab", role="tabpanel", etc.)goblocks_register_dynamic_tags hookanybuild/ directory in the plugin ZIP contains compiled assets generated from the src/ directory. To regenerate them:
git clone https://github.com/godevsltd/godevsblocks.gitnpm installnpm run build@wordpress/scripts (webpack-based). Node.js 18+ and npm 9+ required.
godevs-blocks folder to your /wp-content/plugins/ directory, or install via Plugins → Add New in WordPress.Yes. GoDevs Blocks works with any WordPress theme — FSE (Full Site Editing) themes, classic themes, and hybrid themes. It uses CSS custom properties that integrate with your theme's existing design system without overriding it.
Yes. All GoDevs Blocks blocks use block API v3 with full block.json registration,
making them fully compatible with the Site Editor. GoDevs Blocks also integrates with
theme.json via the wp_theme_json_data_theme filter to share color palettes
with the global styles system.
Yes. GoDevs Blocks is multisite-compatible. Each site in a network has its own CSS cache directory, its own settings, and its own global styles — fully isolated.
No. GoDevs Blocks generates a single CSS file per page, served as a static file from your uploads directory with standard browser caching. There is zero frontend JavaScript for all layout, text, heading, image, and icon blocks. Interactive blocks (Tabs, Accordion) use tiny vanilla JS IIFE scripts (~500 bytes each) that are only loaded when the block is present on the page.
Use the dynamic tag syntax {post_title}, {post_date|format:Y}, or
{post_meta|key:_my_field} in any text or heading block. Click the Dynamic
Content button in the block toolbar to browse all available tags. Tags are also
supported in image src, alt, and HTML attributes.
Yes. Implement the GoBlocks\DynamicContent\TagInterface and register your tag:
php
add_action( 'goblocks_register_dynamic_tags', function( $registry ) {
$registry->register( new My_Custom_Tag() );
} );
No. GoDevs Blocks outputs minimal semantic HTML. There are no wrapper divs, no data-attributes on most elements, and no inline styles. All styling is done through CSS custom properties scoped to the block's unique class.
By default, GoDevs Blocks writes a single CSS file per page to wp-content/uploads/goblocks/
and serves it with a <link> tag. This can be changed to inline <style> output
in GoDevs Blocks → Settings → CSS Print Method.
Select your Accordion block, open the Inspector panel, and toggle Enable FAQ
Schema. GoDevs Blocks will automatically add schema.org/FAQPage, Question, and
Answer structured data to the rendered HTML.