With Block Editor Colors plugin active, when we upload to the media library the file is being put in an old folder (2023/03, current date is 2024/06). This is because get_post(0) is returning the first block_editor_color likely due to global $post polution. We determined this was caused by the WP_Query in CustomColorsService.php set_colors. I see the wp_reset_postdata() after the loop, but for some reason it’s not reseting it. Can you change the WP_Query to get_posts to avoid this issue?
private function set_colors() {
$args = array(
'post_type' => $this->color_cpt_slug,
'orderby' => 'menu_order',
'order' => 'ASC',
'numberposts' => -1
);
$posts = get_posts( $args );
$colors = [];
$disabled_colors = [];
foreach($posts as $post) {
if ( $post->post_status === 'publish' ) {
$colors[ $post->ID ] = [
'name' => $post->post_title,
'slug' => get_post_meta( $post->ID, 'slug', true ),
'color' => get_post_meta( $post->ID, 'color', true ),
];
} else {
$disabled_colors[ $post->ID ] = [
'name' => $post->post_title,
'slug' => get_post_meta( $post->ID, 'slug', true ),
'color' => get_post_meta( $post->ID, 'color', true ),
];
}
}
$this->custom_colors = $colors;
$this->disabled_custom_colors = $disabled_colors;
}
]]>
White text colors are turning gray in block editor. I’ve tried changing the text back and deleting the cache so changes would be visible. However, the text remains gray.
The blocks affected on the example page are in the Bonus CTA section and in the page footer.
This started in the footer after the 6.3 update. The CTA section is more recent.
]]>After installing CoBlocks Update v3.0.1 I get this error:
Uncaught Error: Call to undefined function get_current_screen() in /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/coblocks/includes/block-migrate/loader.php:30Stack trace:#0 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-hook.php(310): CoBlocks->{closure}()#1 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#2 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action()#3 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-query.php(4652): do_action_ref_array()#4 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-query.php(3614): WP_Query->setup_postdata()#5 /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/block-editor-colors/includes/CustomColorsService.php(67): WP_Query->the_post()#6 /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/block-editor-colors/includes/CustomColorsService.php(15): BlockEditorColors\CustomColorsService->set_colors()#7 /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/block-editor-colors/includes/CustomColorsService.php(27): BlockEditorColors\CustomColorsService->__construct()#8 /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/block-editor-colors/includes/CustomColorsService.php(263): BlockEditorColors\CustomColorsService::getInstance()#9 /var/www/vhosts/raumfahrer.net/httpdocs/wp-content/plugins/block-editor-colors/includes/BlockEditorColors.php(25): include_once(‘…’)#10 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-hook.php(308): BlockEditorColors\BlockEditorColors->setup_color_service()#11 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#12 /var/www/vhosts/raumfahrer.net/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()#13 /var/www/vhosts/raumfahrer.net/httpdocs/wp-settings.php(617): do_action()#14 /var/www/vhosts/raumfahrer.net/httpdocs/wp-config.php(79): require_once(‘…’)#15 /var/www/vhosts/raumfahrer.net/httpdocs/wp-load.php(50): require_once(‘…’)#16 /var/www/vhosts/raumfahrer.net/httpdocs/wp-admin/admin.php(34): require_once(‘…’)#17 /var/www/vhosts/raumfahrer.net/httpdocs/wp-admin/index.php(10): require_once(‘…’)#18 {main}<span style=”mso-spacerun:yes”>? </span>thrown
Disabled CoBlocks for now, but error looks like Block Editor Colors is somehow involved. ]]>Hi!
Thanks a lot your plugin.
I made from scratch a block theme with a palette (theme.json). After activating your plugin it only shows the default palette and not the one I created. Is-it normal?
I’ve tried with the Frost theme and I get the same problem.
Could you help me? Thanks.
Kind regards,
Grégoire
It would make much more sense if Colors was under the Appearance section instead of Settings. I would suggest moving it there for the next release.
]]>Hi,
The new wordpress 5.9 update has broken the plugin and we can’t choose colors in the editor. Also, if we uninstall the plugin the existing posts with custom colors are not working they turn dark gray – Please help either update to make it compatible or share how can we safely remove it without breaking the website.
]]>Will the Block Editor Colors development team address this issue?
“This plugin has been closed as of September 20, 2021 and is not available for download. Reason: Guideline Violation.”
]]>Hi,
It would be really helpful (from development view) to have all custom colors also available in css variables.
Example:
Thanks
]]>It says the plugin is no longer available since roughly two weeks ago. It would really help to know the reasons.
Thanks
I’m using the Neve theme, and it seems like theres a CSS override for the colors set for buttons (see test-page linked). How do I get the colors from this plugin to take effect?
]]>With recent update to WordPress 5.8 the custom colors no longer seem to appear in the block editor color picker popups.
]]>Hello,
I identified a conflict between Block Editor Colors plugin and The Events Calendar plugin.
When trying to access an event specific page, it does not load properly the single event content on the page (showing events list instead) when Block Editor Colors ?plugin is activated. I alerted The Events Calendar about it and now I let you know.
I would love to get a fix because I really enjoy using Block Editor Colors and I hope I can continue using it.
Kind regards,
Eva
This plugin conflicts with Woocommerce with Woocommerce Warranty Requests plugin. The result is the woocommerce order notes process goes into a never ending loop and does not email a message to the customer. I isolated this using the healthcheck plugin to activate plugins one at a time. With this plugin or with the woocommerce Warranty Requests plugin deactivated everything works as it should.
]]>I am unable to change the Name or Slug for the default colors. I can change the color. I can add color, name and slug for custom colors. It would seem since the option is there in the form that I should be able to change the name and slug for the default color, but it fails to work with either the Astra theme or the default WP Twenty Twenty one theme. All other plugins disabled, running WP 5.7.
]]>Plugin description says “Custom Colors — Here you can create new colors for the block color palette. You will not lose these colors when you change a theme. These colors can be deactivated or transferred via XML.”
How do I transfer settings via XML? Is this for exporting a color palette from one website and importing the colors to another site?
]]>Hi! We had a problem on a website we were using the plugin. The colors from the plugin are not working on the front end. I edited the color by 1, or other manual colors, and it works. But not the saved colors.
We are using divi theme on this site, but I don’t know if that can be the cause.
Thanks.
]]>Hello i use this great plugin but i really miss the rgba slider besides the lighten and darken slider. Is there any possibilty you will add this or can i add it somehow myself? I am not a coder i am a designer.And thanks a lot this plugin is just great so far would be perfect with an rgba slider. Thank you! Susanne
]]>Hello,
We are using this plugin in wordpress.com twenty twenty theme with Gutemberg editor.
The plugin work well and we have add 3 colors to default theme colors.
The problem is the 3 colors added in the plugin are never shown in the Gutemberg Color Palette ( neither in the text color optiond nor in the color options of the background ).
But if we set a custom color in the Gutemberg editor ( manually with the custom color windows ) if this new color has the same HEX value of the color added in the plugin the CSS code it with the same slug coded in the plugin.
So, the problem seem to be only to show the entire palette in the Gutemberg editor ( standard + custom colors ).
Thank you for help.
]]>I found a bug where some of my custom colors were not shown. I fixed this bug by adding
"nopaging" => true
to the WP_Query arguments in the set_colors()
function in CustomColorsService.php
.
Since I installed the Block Editor Colors when I select any text anywhere in this website the usual blue highlight colour over a selected text disappears making this action very tricky because I can’t see what I am selecting. It happens when editign on back end and when selecting text on the front end.
I have tried unistalling the plugin but the problem persists.
The plugin and the web works fine, but I have been experiencing this issue since I installed it and I don’t have a clue how to fix it.
Did you encounter this issue before? Is there any solution?
I have found this code which seems to help but I don’t know how to revert to the usual situation where there is a blue highlight over the selected text and no need of extra css.
::selection {
background-color: #FFA;
color: #000;
}
Thank you.
]]>Awesome plugin! It’s working quite well. I’d love to have some way to arrange the custom color order, perhaps in a future release. Thank you!
]]>