Changeset 3435181
- Timestamp:
- 01/08/2026 01:23:22 PM (3 months ago)
- File:
-
- 1 edited
-
block-style-modifiers/trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
block-style-modifiers/trunk/readme.txt
r3435131 r3435181 13 13 14 14 Block Style Modifiers is a simple WordPress plugin that allows you to add multiple block styles to Gutenberg blocks. 15 16 17 15 18 16 Style Modifiers are additive CSS classes that: … … 39 37 == Registering a Block Style Modifier == 40 38 41 ```php 42 // Example: Register a style modifier for multiple blocks 39 `// Example: Register a style modifier for multiple blocks 43 40 block_style_modifiers_register_style( [ 'core/image', 'core/cover' ], [ 44 41 'name' => 'zoom-on-hover', … … 72 69 } 73 70 ', 74 ] ); 75 ``` 71 ] );` 72 76 73 77 74 Example result in markup: 78 75 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">` 83 77 84 78 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.