I noticed that you’re using a child theme of Twenty Twenty-One, which also registers custom editor color palette using the same hook and priority (i.e. 10), so try using 11 or greater as the action’s priority:
add_action( 'after_setup_theme', 'add_custom_gutenberg_color_palette', 11 );
Related Posts:
- Set image size on media and text block with a function
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- How to specify which Gutenberg blocks are available in the editor for a page template
- Why is my Gutenberg block returning an error after initial save?
- Access / Filter block variations in Gutenberg, in WordPress 5.6
- Adding a colorbutton in tinymce dialog with current api
- Add php code to wp_print_scripts?
- Function not working inside of a function in functions.php
- how to make has_block() see inside blocks too
- Adding custom social icons to the social media icon block in the Gutenberg editor?
- Pass URL to iframe in WordPress Block
- Customizing the wp_video_shortcode output with add_filter
- large image size of 1440×1440 not pulling 2x of 2880×2880 image
- How to get postId from the argument $block when register_block_type()?
- Problem with lists and “allowed_block_types” in functions.php (since WP 6.1.1)
- Remove Actions/Filters added via Anonymous Functions
- How to paginate the get_users function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- How to add classes to images based on their categories?
- Compare post levels and user levels wishlist member
- Generating Responsive Background Image Sizes in PHP
- Change ul class=”children” for wp_list_pages?
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Set default options for inserting media
- Session is not starting
- Override a class function to include a custom template
- the_post_thumbnail fallback using hooks
- Hide WYSIWYG editor on certain templates
- Polylang: pll_e() & pll__() on functions.php, doesn’t work
- Disable shortlinks like ?p=1234 to prevent scraping
- Redirect a list of URLs to another URL, using functions.php
- WP_Remote_Get Not working
- Debugging with functions.php
- Getting first Image from post
- Inserting a functions output after the content
- Combine two different filter callback functions
- How to limit character length in BuddyPress function output [closed]
- Ordering posts by publish date not working?
- Is possible add icon in title posts only in specific tag?
- Wp_schedule_event functions.php
- How to install Segment on WordPress without a plugin
- How to search using ajax for exact phrase or words in an input field?
- Can’t generate thumbnail images
- Dashboard widget custom positioning?
- Display tags that only appear in one category
- Need help “sanitizing” a custom function that pulls category slug into body class
- How to get data from an array using get_user_meta()
- Space Not Being Generated in HTML Output?
- Remove Custuomize Sections
- (Woocommerce) Order by price when entering specific category
- Exclude category from shortcode
- Adding an option to a shortcode
- Custom HTML markup
- Get urls of images in a gallery?
- Undefined variable error in new function
- How can I show immediate and/or parents in a title?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Best way to disable sidebars on posts (only)?
- Passing Jquery value to WordPress function
- How to pass variables from one function to another or combine functions
- How to create a shortcode out of a php function
- How to override this theme function in child theme
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- Internet Explorer opens links to .msi files as text in a new tab
- call wp_insert_user in custom class doesnt work
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- I would like single.php to act just like index.php
- Does WordPress has an automatic link parse function?
- A better way to get stats
- Get URLs for AJAX Filter Checkboxes WordPress
- Is it possible to load recaptcha script only in url with fragment identifier (#)?
- page shows short code not output
- Scheduled post delete – can’t pass the cron arguments
- Prevent function from triggering on current page
- Assign IDs to headings in ACF using functions.php
- Multiple Notifications SetInterval
- Child Theme not loading multiple stylesheets
- Show number of sold products but be first for less than 2
- How to retrieve image IDs from shortcode content?
- Class::$template_dir_path=get_template_directory();
- admin-ajax.php & my wp-admin folder url showing in header
- Post date on Custom field
- Fatal error: Call to undefined function add_action() – an untouched problem
- How to wp_enqueue_script with html?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Error function main() is a non-object to construct my Ajax.php
- Unregistering custom tinymce plugin?
- Combining wp_current_user() and a variable
- Init hook for header send
- java script error Uncaught SyntaxError: Unexpected token ILLEGAL
- Gravity Forms After Submission – GFFormsModel::update_lead_field_value?
- site_url is not honoring scheme
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- new to javascript – using in instead of functions.php, not loading correctly
- Remove Disqus JavaScript from homepage
- Missing argument 2
- Load script only on selected Pages
- Using input_attrs() Multiple Times Within One Customizer Control
- Convert Image to Webp on upload without plugin
- How to automatically load Google Fonts on pages only as they’re used?