eplanet
Forum Replies Created
-
Forum: Plugins
In reply to: [Central Color Palette] not working with elementorWorks for me.
Forum: Plugins
In reply to: [Central Color Palette] not working with elementorJet Tabs does break it:
Jet Tabs has:
add_filter( 'elementor/editor/localize_settings', array( $this, 'elementor_editor_localize_settings' ), 10, 2 );
Set a priority in CCP line 264:
add_filter('elementor/editor/localize_settings', array($this, 'elementor_integration'), 100);
Seems to fix it.
- This reply was modified 6 years, 8 months ago by eplanet.
Forum: Plugins
In reply to: [Central Color Palette] Feature Request: Integration with OceanWP themeWorks perfectly in OceanWP for me, great job!
Thanks!
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?Works!
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?Sent
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?I have GP-Premium but I can’t post a public download, how can I get this to you privately?
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?This works for Elementor for me. Nice job.
GeneratePress doesn’t have alpha pickers but it’s premium plugin does:
https://generatepress.com/premium/I just use something like this:
function cc_palettes() { $palettes = array_column( get_option( 'kt_color_grid_palette' ), '0' ); foreach ( $palettes as &$hex ) { $hex = '#' . $hex; } return $palettes; } // Let's have at least 8 colors in Central Color Palette $palette_count = count( cc_palettes() ); if ( $palette_count >= 8 ) { if ( is_plugin_active( 'gp-premium/gp-premium.php' ) ) { add_filter( 'generate_default_color_palettes', 'cc_palettes' ); } }
Thanks!
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?I finally wrote a plugin for this (and GeneratePress/GP-Premium alpha pickers).
GeneratePress has a filter so that was easy. Elementor was, as you say a dirty hack.For Elementor I resorted to using update_option then hide the Elementor Color Picker setting. You can add as many colors you want in Central Color Palette and it works good in Elementor and GeneratePress/GP-Premium. I personally like 8 colors plus black and white.
It’s best to leave the 4 Elementor Default/Global Colors alone.
Hacky but worth it to me.
Forum: Plugins
In reply to: [Central Color Palette] Integration with Elementor?+1 for Elementor integration!
Forum: Plugins
In reply to: [Max Mega Menu] Color Picker Palette ColorsFound it:
$(".mm_colorpicker").spectrum({ ... palette:
Not a fan of these color pickers.
Forum: Plugins
In reply to: [Central Color Palette] Feature Request: RGB / RGBASorry for taking so long and thank you for your effort but that does not fix the GeneratePress Alpha color pickers.
I found the problem, those pickers require the hex hash #.$palettes = array_column( get_option( 'kt_color_grid_palette' ), '0' ); foreach ( $palettes as &$val ) { $val = '#' . $val; } return $palettes;
Maybe you have a better way?
Thank You
Forum: Plugins
In reply to: [Central Color Palette] Feature Request: RGB / RGBAOne thing I found with those alpha pickers is the array must start with [0], I change the palettes with php code and had to use array_values to get the keys in order and starting with [0].
I’m going to look again at the Central Color Palette in the db, maybe I’ll see something.
Thanks!
Forum: Plugins
In reply to: [Central Color Palette] Feature Request: RGB / RGBAI am not explaining this right, I’m not worried about TinyMCE transparency.
Some themes use alpha pickers in the customizer and Central Color Palette does not work with those pickers.
Thanks!
Forum: Plugins
In reply to: [Central Color Palette] Feature Request: RGB / RGBAI didn’t explain that right, GeneratePress and Elementor have alpha color pickers and Central Color Palette does not work on those color pickers.
I would pay for the author/contributor to make Central Color Palette work as the default palette for GP and Elementor, that way you could have a global palette.
Thanks
Forum: Plugins
In reply to: [Menu Item Custom Fields] More Input TypesAnd now that I look there is a new menu plugin that looks really good. LMM – WordPress Responsive Mega Menu based on Bootstrap