Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot add styles to the Grid block #34

Closed
alhoseany opened this issue Jan 18, 2019 · 3 comments
Closed

I cannot add styles to the Grid block #34

alhoseany opened this issue Jan 18, 2019 · 3 comments

Comments

@alhoseany
Copy link

Hi nk-o,

This is a great plugin. Thank you for this huge work. I am trying to add some custom styles to the Grid block using the following code:

  wp.blocks.registerBlockStyle( 'ghostkit/grid', {
    name: 'slideshow-align-right',
    label: 'Align slide content right',
  } );

I see the tyles dropdown in the inspector but when I click on it, the editor crashes.

@nk-o
Copy link
Collaborator

nk-o commented Jan 19, 2019

Hi.

I see this happens also with core/columns blocks. Seems like a Gutenberg bug with blocks, that uses InnerBlocks.

Related issue in Gutenberg repo: WordPress/gutenberg#9897

@alhoseany
Copy link
Author

ok, Thank you.
Is there is any way to add a custom class to the grid without using the custom class in the advanced panel?

@nk-o
Copy link
Collaborator

nk-o commented Jan 20, 2019

You can try Ghost Kit Variants, but most probably it will be deprecated in future updates in favor of Styles feature of Gutenberg. See FAQ on how to add it: https://wordpress.org/plugins/ghostkit/#how%20to%20extend%20existing%20blocks

@nk-o nk-o closed this as completed Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants