Gutenberg Custom Blocks
WordPress plugin with custom Gutenberg blocks: React for admin interface, PHP for frontend rendering.
by Akrem Belkahla · github.com/akrembelkahla/gutenberg-custom-blocks · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/akrembelkahla/gutenberg-custom-blocks/archive/refs/heads/main.zipA professional WordPress plugin providing custom Gutenberg blocks for creating stunning landing pages with ACF Pro integration.
Table of Contents
Requirements
- WordPress 6.0 or higher
- PHP 7.4 or higher
- ACF Pro (Advanced Custom Fields PRO) installed and activated
- Modern web browser with JavaScript enabled
Installation
- Download the repository contents
- Place the folder in
wp-content/plugins/ - Activate the plugin through the WordPress admin interface
Features
Core Features
- 9 Custom Gutenberg Blocks optimized for landing pages
- ACF Pro Integration for flexible custom fields management
- React-based Editor for dynamic editing experience
- PHP Frontend Rendering for optimal performance
- Tailwind CSS Styling for modern, responsive designs
- Font Awesome Icons for visual enhancement
Technical Features
- Singleton Pattern for better resource management
- Centralized Configuration system for easy customization
- Asset Optimization with cache busting and conditional loading
- Block Validation and error handling
- Extensible Architecture with WordPress hooks and filters
- Modern WordPress Coding Standards compliance
- Internationalization Ready (i18n support)
- Debug Mode Support for development
Available Blocks
- Hero Section - Eye-catching header with CTA
- Why Choose Us - Feature highlights section
- Digital Agency - Agency statistics showcase
- Increase Traffic - Marketing-focused content block
- Best Solutions - Services listing
- Pricing Plans - Pricing tables with features
- Testimonials Section - Customer reviews
- Contact Form - Contact information display
- Fast Agency - Quick facts and statistics
Development
Architecture
- Object-Oriented PHP with proper class structure
- WordPress Coding Standards compliance
- PSR-4 Autoloading ready structure
- Action and Filter Hooks for extensibility
- Error Logging in debug mode
Code Quality
- Well-documented code with PHPDoc comments
- Secure coding practices (sanitization, escaping, nonce verification)
- Performance optimized asset loading
- Modular and maintainable codebase
Customization
Developers can extend the plugin using WordPress hooks:
// Add custom blocks
add_filter( 'gcb_blocks_to_register', function( $blocks ) {
$blocks[] = 'my-custom-block';
return $blocks;
} );
// Modify block arguments
add_filter( 'gcb_block_args', function( $args, $block_name ) {
// Customize block registration args
return $args;
}, 10, 2 );
// Disable external libraries if needed
add_filter( 'gcb_load_tailwind', '__return_false' );
add_filter( 'gcb_load_fontawesome', '__return_false' );
Changelog
See CHANGELOG.md for detailed version history.
Support
For issues, questions, or contributions, please contact:
- Author: Akrem Belkahla
- Agency: InfinityWeb
- Website: InfinityWeb.tn
License
This plugin is licensed under the GPL v2 or later.
Credits
- Author: Akrem Belkahla
- Agency: InfinityWeb
- Built with WordPress best practices and modern web technologies