• Resolved red5

    (@red5)


    The Gutenberg Color Picker applies classes to elements that users style instead of hex values. It would be great if the Lazy Blocks Color Picker did the same or if it had an option for that. It would make my blocks more consistent with default WordPress. More importantly, classes would lead to more options like :hover effects.

    Example of Gutenberg classes.

    Thank you for your work on this plugin. It’s amazing!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter red5

    (@red5)

    I found a workaround using PHP template files with my Lazy Blocks. Since I’m using my own custom color pallet in Gutenberg, I can return that color pallet as an array in my template with $myvar = get_theme_support( ‘editor-color-palette’ );

    I can then use a loop to compare the hex color that Lazy is returning with my array to get the corresponding class value.

    Plugin Author nK

    (@nko)

    Hey.

    There is an issue on GitHub. I think I will make it possible in the next plugin update. https://github.com/nk-crew/lazy-blocks/issues/126

    Regards, nK.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Color Picker: Option to use class instead of hex’ is closed to new replies.