• Resolved carlosmdh

    (@carlosmdh)


    Good Morning.
    A question to see if someone can solve it.
    One of the advantages of blocks is that you can restrict the colors you allow for text and background with a simple smippet, blocking the user from turning the pages into a kaleidoscope. To do this, just put the following function in the functions.php:
    add_theme_support (
    ‘editor-color-palette’, array (
    And complete the array with the colors you want to enable. So far so good.
    What I ask myself, and I ask you is if there is an easy solution for blocks that are not from the core, that is, those that are added through plugins, such as Genesis blocks ACF Blocks, etc.
    That is, the question / idea is how to extend the color limitation to any block, regardless of whether it is the core or a plugin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Colors palette in All Blocks’ is closed to new replies.