# Add Style to PG Gutenberg Block?

**URL:** <https://forum.pinegrow.com/t/add-style-to-pg-gutenberg-block/6013>\
**Category:** WordPress\
**Created:** [December 9, 2021, 2:55pm UTC](https://forum.pinegrow.com/t/add-style-to-pg-gutenberg-block/6013 "2021-12-09T14:55:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Post date:** [December 9, 2021, 2:55pm UTC](https://forum.pinegrow.com/t/add-style-to-pg-gutenberg-block/6013/1 "2021-12-09T14:55:40Z")

</div>

Hi, I’m able to add styles to core blocks but when I try the exact same code for PG blocks I can’t get the styles to show up:

```auto
wp.blocks.registerBlockStyle('core/image', {
      name: 'image-border-radius-lg',
    	label: 'Rounded Corner Large'
    }
  );
  wp.blocks.registerBlockStyle('rental-world/gb-section', {
      name: 'image-border-radius',
    	label: 'Rounded Corner'
    }
  );

```

```auto
function jr_enqueue_block_editor_assets() {
  wp_enqueue_script( 'g_blocks', get_template_directory_uri() . '/a_js/g-blocks.js', array( 'wp-hooks', 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ), null, true );
}
add_action( 'enqueue_block_editor_assets', 'jr_enqueue_block_editor_assets' );

```

---

<div class="post-metadata">

**Author:** ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)\
**Post date:** [December 9, 2021, 5:38pm UTC](https://forum.pinegrow.com/t/add-style-to-pg-gutenberg-block/6013/2 "2021-12-09T17:38:28Z")

</div>

Actually, it’s working (I’m not sure what changed) but I guess I’ll leave this here in case anyone wants to use this as a reference to manually add styles to a block.
