Block Style Modifiers
Block Style Modifiers is a simple WordPress plugin that allows you to add multiple block styles to Gutenberg blocks. Style Modifiers are additive CSS classes that: Can be applied in addition to a Block Style Can be selected multiple at the same time Support both checkbox (non-exclusive) and radio (exclusive) behavior per category Are predefined and documented by themes or plugins Preserve class order, allowing advanced CSS control Category Behavior Style modifiers are organized into categories with two behaviors: Non-exclusive categories (checkbox): Multiple modifiers can be selected simultaneously (default: exclusive: false) Exclusive categories (radio): Only one modifier from the category can be selected at a time (exclusive: true) Registering Categories Categories are registered independently using block_style_modifiers_register_category() before any modifiers that belong to them. Modifiers then reference the category by its slug (string). block_style_modifiers_register_category( $slug, $args ) $slug – Language-independent identifier for grouping (required, first argument) label – Translatable UI label (required) description – Optional category description exclusive – Boolean flag for radio behavior (default: false) Features Register multiple style modifiers for any block type Apply multiple style modifiers to a single block Global style modifiers that apply to all blocks Inline CSS support for easy styling of modifiers Structured category objects with exclusive/non-exclusive behavior Theme-independent default modifiers via Block Style Modifier Pack Default Modifiers Block Style Modifiers includes theme-independent default modifiers that work with any WordPress theme: Philosophy: * Enhance behavior, not visual design * No borders, shadows, spacing, or color palettes * Work with any theme without conflicts * Atomic and performant * Respect prefers-reduced-motion Available Categories: Animations (Exclusive) – Entrance animations for wrapper blocks * Fade In – Smooth fade entrance * Slide Up – Slide from bottom * Slide Down – Slide from top * Slide Left – Slide from right * Slide Right – Slide from left * Scale In – Scale up animation * Rotate In – Rotate with fade * Flip In X – 3D flip animation Applied to: Group, Row, Stack, Grid, Column, Columns (wrapper blocks only) Animation Delay (Exclusive) – Control animation timing * Fast (0.2s) * Normal (0.4s) * Slow (0.8s) Hover Effects (Exclusive) – Transform-based hover interactions * Zoom In on Hover * Subtle Rotate on Hover * Bounce on Hover * Shake on Hover * Brighten on Hover * Darken on Hover * Grayscale to Color on Hover (Image/Cover only) * Blur to Focus on Hover (Image/Cover only) Applied to: Image, Cover, Media & Text (content blocks only) Text Effects (Exclusive) – Micro-interactions for text * Underline Reveal on Hover * Soft Text Fade on Hover Applied to: Paragraph, Heading (text blocks only) All default modifiers respect accessibility preferences and are disabled when prefers-reduced-motion is set. Architecture Note: Animations are only available for wrapper blocks (Group, Row, Stack, etc.) while Hover Effects are for content blocks (Image, Cover, Media & Text). This separation prevents CSS property conflicts and ensures all modifiers work seamlessly together. You can easily extend or override these defaults by registering your own style modifiers in your theme or custom plugin. Usage Define your style modifiers using the block_style_modifiers_register_style function via your theme’s functions.php file or a custom plugin. Select style modifiers in the block editor sidebar under “Block Style Modifiers”. Style modifiers will be applied as additional CSS classes to the block’s wrapper element. It is possible that reordering of classes may affect CSS specificity and styling. Note: There is available an experimental plugin includes blocks style modifiers: Block Style Modifier Pack plugin to function. Registering a Block Style Modifier You can easily register your own style modifiers in your theme or custom plugin. Here are some examples of how to register style modifiers with different category behaviors: Step 1: Register Categories block_style_modifiers_register_category( 'hover-effects', [ 'label' => __( 'Hover Effects', 'my-theme' ), 'description' => __( 'Transform-based hover interactions', 'my-theme' ), 'exclusive' => true, ] ); block_style_modifiers_register_category( 'responsive', [ 'label' => __( 'Responsive', 'my-theme' ), 'description' => __( 'Responsive visibility controls', 'my-theme' ), 'exclusive' => false, ] ); Step 2: Register Modifiers (Reference Category by Slug) Exclusive Category (Radio Behavior) block_style_modifiers_register_style( [ 'core/image', 'core/cover' ], [ 'name' => 'zoom-on-hover', 'label' => __( 'Zoom on Hover', 'my-theme' ), 'class' => 'bsm-zoom-on-hover', 'description' => __( 'Zoom into image on hover', 'my-theme' ), 'category' => 'hover-effects', ] ); Non-Exclusive Category (Checkbox Behavior) block_style_modifiers_register_style( '*', [ 'name' => 'hide-sm', 'label' => __( 'Hide on Small Screens', 'my-theme' ), 'class' => 'bsm-hide-sm', 'category' => 'responsive', ] ); That’s it! You can now select multiple style modifiers for your blocks in the Block Editor. Example Result in Markup class="wp-block-cover has-custom-content-position is-position-bottom-left bsm-zoom-hover bsm-fade-in bsm-delay-normal" It is important to note that the order of classes may affect CSS specificity and styling. You can easily reorder your modifiers with drag/drop functionality in the Block Editor. Source Code It is available on GitHub: * GitHub: https://github.com/Arkenon/block-style-modifiers
Translate WordPress with GTranslate
Translate WordPress with GTranslate plugin uses Google Translate AI translation service to translate wordpress site with Google power and make it multilingual. With 103 available languages your site will be available to more than 99% of internet users. Our paid versions are fully SEO compatible which will increase your international traffic and sales. This translate plugin is a budget multilingual WordPress solution which combines automatic and human translations to save money and is easy to implement. GTranslate is a leading website translation services provider since 2008, it moves away the language barriers. Compared to other translation plugins for WordPress, we use cloud based approach which does not slow down your website. In addition to that, we can offer complete SEO features based on sub-domains with our paid options, which can make your website appear in search engines in different languages which will increase your international traffic and sales. In our paid versions we DO NOT limit the number of words or the number of translated pageviews. You DO NOT pay additionally for automatic translations. Please use GTranslate Support for your questions and support requests! We are multilingual! Please check our FAQ to get quick answers. Free translation service: permitted use Under the GTranslate Terms of Service, the free translation service is available for personal, educational, internal testing, nonprofit and governmental purposes, provided the use does not directly generate revenue from the service. Nonprofit use must further nonprofit activities; governmental use includes public institutions and other public-sector entities. Commercial or revenue-generating use requires an applicable paid subscription. This free-service restriction does not apply to free trials of paid subscriptions. These service conditions do not change the WordPress plugin code’s GPLv2-or-later license. Features Automatic machine translation Translate website on the fly Translate posts and pages Translate categories and tags Menus and widgets translation Themes and plugins translation Right to left language support Google Translate website translator widget alternative Auto-switch language based on browser defined language Available styles Float, Dropdown, Flags, Flags with dropdown, Nice dropdown with flags, Flags with language names, Flags with language codes, Language names, Language codes, Globe, Popup Floating language selector WooCommerce shop translation Multilingual language names in native alphabet Alternative flags for Quebec, Canada, USA, Brazil, Mexico, Argentina, Colombia Lazy loading for language flags and js libraries to boost performance Lightweight vanilla javascript without dependencies Forum Support Paid Features Multilingual SEO – Enable search engine indexing Neural machine translations with human level translation quality Increase traffic and AdSense revenue Search engine friendly (SEF) URLs Yoast SEO compatible – translate meta keywords, meta description, schema.org data structures, translate sitemaps WooCommerce compatible – translate products, schema.org data structures You can have sub-directory (example.com/es/) or sub-domain (es.example.com) URL structure URL Translation aka slug translation is possible (example.com/about-us → example.es/sobre-nosotros) Add hreflang tags for translated alternatives You can manually correct translations In context translation interface (make corrections without losing the context) Meta data translation (meta keywords, meta description) Translating schema.org microdata for better search engine appearance Seamless updates (cloud service updated on our side – SaaS, you do not need to worry about backups on your side) JSON format translation Translate WooCommerce emails AMP translation (Accelerated Mobile Pages translation) Image localization – Media translation Translation Proxy (aka Translation Delivery Network) Centralized Translation Cache – We revise and improve translations over time Language Hosting (example.fr) User Dashboard with Analytics Live Chat Support See also If you are looking for unlimited, high-quality automatic translations, check out TranslateX – an automatic translation API offering unlimited translation for your website or application. We also offer integration plugins: TranslateX for Loco Translate – integrate TranslateX API directly into Loco Translate for seamless, unlimited automatic translations. TranslateX for TranslatePress – bring unlimited automatic translation to TranslatePress using TranslateX API. These solutions make it easy to supercharge your WordPress multilingual setup with TranslateX’s secure and affordable API. GTranslate WordPress Demo Watch GTranslate Tour Edit Translations Demo (paid) External services This plugin uses external services to load the language selector and obtain automatic translations. GTranslate widget delivery When the widget loads, the visitor’s browser requests its files from cdn.gtranslate.net over HTTPS. GTranslate, Inc. provides the widget, which connects the visitor’s browser to the translation service. Google translation requests When page translation is requested, the widget sends page text for translation from the visitor’s browser to translate-pa.googleapis.com over HTTPS. Google processes these translation requests. The content sent is the page text being translated. Loading widget files and requesting translations are separate network operations. These requests also expose standard connection and HTTP request information, such as the visitor’s IP address and browser headers, to the receiving service. Provider processing and retention practices are described in the applicable policies; browser-based translation does not mean that no data leaves the browser or that providers retain no data. If you configure a paid translation proxy service, translated versions of your website are processed and served through GTranslate’s cloud infrastructure according to your service configuration. GTranslate, Inc.: Terms of Service, Privacy Policy Google: Terms of Service, Privacy Policy Review these services when updating your website’s privacy information and configuring any consent or content-security controls. The plugin requires access to the relevant external services for translation to work.