| title | {{name}} - Usage Guide |
|---|---|
| version | {{version}} |
| last_updated | 2024-10-18 |
| author | {{author}} |
| description | User guide for {{name}} |
| type | documentation |
This guide explains how to use the {{name}} in your WordPress site.
- Download the plugin ZIP file from the releases page
- In your WordPress admin, go to Plugins > Add New
- Click Upload Plugin and select the ZIP file
- Click Install Now and then Activate
- Download and extract the plugin files
- Upload the
{{plugin_slug}}folder to/wp-content/plugins/ - Activate the plugin through the Plugins menu in WordPress
composer require {{author}}/{{plugin_slug}}Once activated, the {{name}} blocks will be available in the WordPress block editor.
- Open the block editor for any post or page
- Click the (+) button to add a new block
- Search for "{{name}}" or find blocks in the Widgets category
- Click to insert the block
Each block provides several options for customization:
- Text Content: Enter your text in the rich text editor
- Text Alignment: Choose left, center, or right alignment
- Formatting: Use bold, italic, links, and strikethrough
The blocks support WordPress's design tools:
- Colors: Set text and background colors
- Typography: Adjust font size, family, and style
- Spacing: Configure margins and padding
- Borders: Add borders with custom colors and radius
When a block is selected, you'll see toolbar controls for:
- Text Alignment: Quick alignment buttons
- Text Formatting: Bold, italic, link, strikethrough
- More Options: Additional block settings
In the block settings sidebar, you'll find:
- Block Settings Panel: Core block options
- Color Settings: Text and background color options
- Typography Settings: Font and text styling
- Dimensions Settings: Spacing and border options
The blocks are designed to integrate seamlessly with your theme:
- Inherits theme colors from your theme palette
- Respects theme typography settings
- Follows theme spacing conventions
- Supports theme.json configuration
You can add custom styles using WordPress's Additional CSS feature:
/* Target the block wrapper */
.wp-block-{{namespace}}-{{block_slug}} {
/* Your custom styles */
}
/* Target the content area */
.wp-block-{{namespace}}-{{block_slug}}__content {
/* Content-specific styles */
}
/* Alignment variations */
.wp-block-{{namespace}}-{{block_slug}}.has-text-align-left {
/* Left-aligned styles */
}Create reusable patterns with the blocks:
- Create your design using the blocks
- Select the block(s) you want to save
- Go to Patterns > Create Pattern
- Name your pattern and choose categories
- Save and reuse across your site
The {{name}} blocks are built with accessibility in mind:
- Tab navigation through interactive elements
- Enter/Space to activate buttons
- Arrow keys for text alignment selection
- Escape to exit menus and dialogs
- Proper ARIA labels for all controls
- Descriptive text for screen readers
- Focus management for modal dialogs
- Semantic HTML structure
- Automatic contrast checking in the editor
- Warnings for poor contrast combinations
- Support for high contrast mode
- Respects user preferences for reduced motion
The blocks are optimized for performance:
- Lightweight CSS - only essential styles are loaded
- Conditional loading - scripts only load when needed
- Minified assets in production
- Browser caching support
- Use sparingly - don't overload pages with too many blocks
- Optimize images if using background images
- Test on mobile devices for performance
- Monitor Core Web Vitals metrics
- Check plugin activation - ensure the plugin is active
- Clear caches - if using caching plugins
- Check theme compatibility - try with a default theme
- Update WordPress - ensure you're using WordPress 6.0+
- Theme conflicts - some themes may override block styles
- Plugin conflicts - deactivate other plugins to test
- Custom CSS - may be interfering with block styles
- Browser caching - clear browser cache and hard refresh
- Too many blocks - reduce the number of blocks on the page
- Large content - break up very long content
- Plugin conflicts - check for poorly coded plugins
- Hosting resources - ensure adequate server resources
If you encounter issues:
- Check the FAQ below for common solutions
- Search existing issues on GitHub
- Create a new issue with detailed information
- Contact support - see SUPPORT.md for options
Yes, the blocks work in any area that supports blocks, including:
- Widget areas (if your theme supports block widgets)
- Full Site Editing template areas
- Custom post types that support blocks
The blocks are designed for the WordPress block editor. Compatibility with page builders depends on whether they support WordPress blocks.
Yes, you can customize styling through:
- WordPress's built-in design tools
- Theme customizer options
- Custom CSS
- Child theme modifications
Yes, the plugin is fully internationalized and ready for translation. Translation files can be contributed via WordPress.org.
Yes, the blocks support right-to-left (RTL) languages and will automatically adjust their layout accordingly.
The blocks are designed for the block editor (Gutenberg). For Classic Editor support, you would need to use shortcodes or widgets.
The blocks are designed to work with any properly coded WordPress theme. If you experience compatibility issues, please report them.
Updates are delivered through WordPress's standard update system:
- You'll see update notifications in your admin
- Click Update to install the latest version
- Always backup your site before updating
Yes! See CONTRIBUTING.md for information on how to contribute code, translations, or documentation.
<!-- wp:{{namespace}}/{{block_slug}} {"content":"Hello World","alignment":"center"} -->
<div class="wp-block-{{namespace}}-{{block_slug}} has-text-align-center">
<div class="wp-block-{{namespace}}-{{block_slug}}__content">
<p>Hello World</p>
</div>
</div>
<!-- /wp:{{namespace}}/{{block_slug}} --><!-- wp:{{namespace}}/{{block_slug}} {"content":"Styled content","textColor":"primary","backgroundColor":"secondary"} -->
<div class="wp-block-{{namespace}}-{{block_slug}} has-primary-color has-secondary-background-color has-text-color has-background">
<div class="wp-block-{{namespace}}-{{block_slug}}__content">
<p>Styled content</p>
</div>
</div>
<!-- /wp:{{namespace}}/{{block_slug}} --><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:{{namespace}}/{{block_slug}} {"content":"Pattern Example","alignment":"center"} -->
<div class="wp-block-{{namespace}}-{{block_slug}} has-text-align-center">
<div class="wp-block-{{namespace}}-{{block_slug}}__content">
<p>Pattern Example</p>
</div>
</div>
<!-- /wp:{{namespace}}/{{block_slug}} -->
</div>
<!-- /wp:group -->- Keep content concise - blocks work best with focused content
- Use appropriate headings - maintain proper document structure
- Consider mobile users - ensure content is readable on small screens
- Test accessibility - use screen readers and keyboard navigation
- Maintain consistency - use consistent colors and typography
- Follow theme patterns - align with your site's overall design
- Consider contrast - ensure text is readable against backgrounds
- Responsive design - test on multiple screen sizes
- Optimize content - avoid unnecessarily large content
- Use caching - implement proper caching strategies
- Monitor metrics - track Core Web Vitals and page speed
- Regular maintenance - keep WordPress and plugins updated