Linux 软件免费装
Banner图

GoDevs Blocks

开发者 godevs
更新时间 2026年8月24日 05:42
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

blocks gutenberg page-builder block-editor full-site-editing

下载

1.0.0

详情介绍:

GoDevs Blocks is a free WordPress block plugin that extends the Gutenberg editor with 36 production-ready blocks built on a modern CSS Custom Property design token system. Every block is responsive across 7 breakpoints, outputs clean semantic HTML, and ships with zero inline styles — all styling is compiled to a single per-page CSS file served as a static asset. Core Blocks Design System Features Performance Accessibility Dynamic Content Pattern Library Developer Friendly Links Source Code & Build The complete, human-readable source code for this plugin — including all TypeScript block source files, SCSS, and build configuration — is publicly available at: https://github.com/godevsltd/godevsblocks The build/ directory in the plugin ZIP contains compiled assets generated from the src/ directory. To regenerate them:
  1. Clone the repository: git clone https://github.com/godevsltd/godevsblocks.git
  2. Install Node.js dependencies: npm install
  3. Build for production: npm run build
Build tool: @wordpress/scripts (webpack-based). Node.js 18+ and npm 9+ required.

安装:

  1. Upload the godevs-blocks folder to your /wp-content/plugins/ directory, or install via Plugins → Add New in WordPress.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Open any post or page in the block editor.
  4. Find GoDevs Blocks in the block inserter under the GoDevs Blocks category.
  5. (Optional) Visit GoDevs Blocks → Global Styles to set up your color palette and typography presets.
  6. (Optional) Visit GoDevs Blocks → Settings to configure breakpoints, CSS output method, and other options.
Requirements:

屏幕截图:

  • The GoDevs Blocks Settings admin panel showing layout, performance (CSS output method), and editor preferences.
  • Frontend rendering of a hero section built with GoDevs Blocks Group and Heading blocks — gradient background, badge, and CTA buttons.
  • The GoDevs Blocks Column Demo page showing 2-column, 3-column, and 4-column flex layouts built with Group and Column blocks.
  • The GoDevs Blocks Pattern Library admin page — searchable browser of 41 ready-made block patterns across 18 categories.
  • The GoDevs Blocks All Patterns Showcase frontend page displaying the full pattern collection.
  • The GoDevs Blocks Global Styles admin panel showing the color palette editor with CSS custom property tokens.
  • The GoDevs Blocks Tabs block on the frontend — ARIA-compliant tabbed panels with keyboard navigation.
  • The GoDevs Blocks Query block rendering a responsive 3-column blog post grid with title, date, and pagination.

升级注意事项:

1.0.0 Initial release. No upgrade required.

常见问题:

Does GoDevs Blocks work with my theme?

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.

Does GoDevs Blocks work with Full Site Editing?

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.

Does GoDevs Blocks work with WordPress Multisite?

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.

Will GoDevs Blocks slow down my site?

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.

How do I use dynamic content?

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.

Can I create custom dynamic tags?

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() ); } );

Does GoDevs Blocks generate bloated HTML?

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.

What is the CSS output method?

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.

How do I add the FAQ schema markup to my accordion?

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.

更新日志:

1.0.0