• Resolved Jules Colle

    (@jules-colle)


    Just a quick line to check if there’s an easy way for developers to further extend (or limit) the grid/container blocks? For example, it would be cool if there was a way to disable some options like the ability to choose a custom font or color, or limit the color palette.

    I’m still looking for a work-flow that allows me to create some block patterns for my clients, without giving them too many options to mess up the design.
    Do you think a plugin like this can help me to achieve that goal?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    Developer documentation is still a work in progress at the moment. However, there are quite a few filters throughout the plugin if you look through the code. All of our panels can be disabled conditionally using this filter: https://github.com/tomusborne/generateblocks/blob/release/1.3.2/src/components/panel-area/index.js#L31

    There are also other filters directly in the panel (further down in that file).

    The color palette is the core editor palette, so you can alter it with a filter. For example: https://www.billerickson.net/code/color-palette-setup-in-gutenberg/

    Will definitely be working on more developer-focused documentation as time goes on 🙂

    Thread Starter Jules Colle

    (@jules-colle)

    That’s awesome, thanks man! Will be using this plugin for some of my projects. Feels like a much safer bet to choose a basic but solid library that I can extend, instead of picking a bloated library full of complicated blocks.
    I hope you’ll keep it that way! 🙂

    One last question, would it make sense to have some kind of central place, to showcase some patterns that can be created with these simple blocks? (something like https://gutenberghub.com/template-category/patterns/) Maybe with the possibility to add user contributions? (If so, I might be able to assist you with this)

    Plugin Author Tom

    (@edge22)

    Will definitely be keeping it that way 🙂

    That’s a great idea – I’ll see what I can do!

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘developer documentation’ is closed to new replies.