Plugin Directory

Changeset 3435181


Ignore:
Timestamp:
01/08/2026 01:23:22 PM (3 months ago)
Author:
arkenon
Message:

update readme.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • block-style-modifiers/trunk/readme.txt

    r3435131 r3435181  
    1313
    1414Block Style Modifiers is a simple WordPress plugin that allows you to add multiple block styles to Gutenberg blocks.
    15 
    16 ![Block Style Modifiers](https://kadimgultekin.com/wp-content/uploads/2025/12/block_style_modifiers_ss.jpg)
    1715
    1816Style Modifiers are additive CSS classes that:
     
    3937== Registering a Block Style Modifier ==
    4038
    41 ```php
    42 // Example: Register a style modifier for multiple blocks
     39`// Example: Register a style modifier for multiple blocks
    4340 block_style_modifiers_register_style( [ 'core/image', 'core/cover' ], [
    4441    'name'        => 'zoom-on-hover',
     
    7269        }
    7370    ',
    74 ] );
    75 ```
     71] );`
     72
    7673
    7774Example result in markup:
    7875
    79 ```html
    80     <div class="wp-block-cover has-custom-content-position is-position-bottom-left bsmp-zoom-on-hover bsmp-hover-overlay-dark bsmp-hide-sm">
    81         ...
    82  ```
     76`<div class="wp-block-cover has-custom-content-position is-position-bottom-left bsmp-zoom-on-hover bsmp-hover-overlay-dark bsmp-hide-sm">`
    8377
    8478== Installation ==
Note: See TracChangeset for help on using the changeset viewer.