Integration with Elementor?
-
Hi, your plugin is really great, any chance to make it compatible with the page builder Elementor and its color palettes?
-
+1 for Elementor integration!
Work’s in progress.
Stay tuned.Thanks for you reply, I’m glad to hear that.
It would be the excellent feature and big timesaver!I find Elementor’s colour management rather weird.
As far as I can figure there are two places where colours are set:
After clicking on that icon in the top left corner I find two buttons Default Colors and Color Picker.
The first seems to set the four global colours of the theme and the second up to 6 (plus black and white) of the palette of the colour picker.
Now, I can overwrite them all in both places (or just in one) but can not add an entry to More Palettes without some dirty hacking (if you wonder why I am happy to explain).As I am not familiar with Elementor’s workflow and am unsure what that list of palettes is actually trying to do, I am wondering, what is it you have in mind:
simply replacing all colours in both or just one place, or adding an entry to the list of palettes?-
This reply was modified 8 years, 4 months ago by
Daniel Menȝies. Reason: corrected html tag garble
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.
Thanks for the details.
Give this a try: 1.10-dev
I am following your solution and am hiding the settings via CSS but rather than overwriting one of Elementor’s options I am using one of its filter.Thanks, I’ll give it a try. Could you pls provide us a zip file for the download? This link seem to be the whole directory and copying the files one by one, could be quite tricky… Thanks
If you have SVN just checkout that link otherwise 1.10-dev
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!
Thanks for the feedback. I consider the integration with Elementor done.
Before I release 1.10 I’d like to get those alpha pickers and GeneratePress sorted as well.Now, I have a free version of GeneratePress running and the custom colours show up without any special code, meaning my wpColorPicker/Iris integration works.
I take it there is a problem with the altered version of wpColorPicker/Iris that the premium version of GeneratePress is providing. I’ve already added an alpha channel to the settings editor of CCP but I need to have a look at GP’s code concering alpha pickers to finish the job. Maybe one of you could help out?
I have GP-Premium but I can’t post a public download, how can I get this to you privately?
You can send me your mail address to [email protected]
It’s a temporary mailbox which only my laptop can read and I will delete as soon as we’re done.Sent
Give this a try: 1.10-dev2
Withing the CCP’s settings tick GeneratePress Premium and Transparency.Works!
-
This reply was modified 8 years, 4 months ago by
The topic ‘Integration with Elementor?’ is closed to new replies.