• Resolved Sallie Goetsch

    (@wpfangirl)


    I have set a color palette in both the Customizer and through add_theme_support( 'editor-color-palette'), but this plugin doesn’t pick it up (or possibly overrides it). How can I get the plugin to use my color palette?

    Thanks,
    Sallie

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Code Amp

    (@codeamp)

    Hi Sallie – I would assume the above would work.

    A couple of questions if you don’t mind:

    – Which theme you are using?
    – Also, does the theme provide its own colour palette, or do you need to register all the colours yourself? (ie, the theme does not have built in theme support for color palettes)

    Thanks
    – Ross

    Thread Starter Sallie Goetsch

    (@wpfangirl)

    Hi, Ross.

    It’s a customization of Mai Sparkle (Genesis child theme) and on my local dev so I can’t share a link. The theme registers a color palette that can be modified in the customizer (it sets the colors it registers as defaults for the customizer).

    Core blocks pick this color palette up fine. So do Genesis Blocks. Various block libraries I’ve used on other sites pick them up fine. I’m wondering whether it has to do with how styles are enqueued for the editor–I know a lot are inline (having just modified some of the ones in the theme), and that overrides everything. If I have time, I will see whether I can test in the default theme and see what happens there, to try to rule out theme code as an issue.

    Cheers,
    Sallie

    Plugin Author Code Amp

    (@codeamp)

    Thanks for the additional info – I’ll do some checking from my side too.

    Will try to get back to you early in the week.

    Have a good weekend

    Best
    – Ross

    Plugin Author Code Amp

    (@codeamp)

    Hi Sallie

    So you were right, our plugin wasn’t picking up the color palette (unless you had installed the latest version of Gutenberg, which doesn’t come with default WP).

    I’ve made some changes in our plugin to integrate this, and will hopefully release an update later on today.

    This is the code I’ve used to update the color palette in my testing (and seems to work well):
    https://gist.github.com/rmorse/3b3d410a4df6c8c2c58a18283c7025c4#file-add-custom-editor-colors-php

    Anyway, that update should be out in not too long!

    Thanks

    Thread Starter Sallie Goetsch

    (@wpfangirl)

    Thanks for checking that! I will add that in.

    Plugin Author Code Amp

    (@codeamp)

    Hi Sallie

    I didn’t get to release this before the weekend (and I’m away next week) so thought I’d drop you the link to the beta, with this fix in, should you want to test it out:
    https://customlayouts.com/documentation/beta/

    There are only a couple of changes in the release so it should be pretty stable, but proceed with caution as with any beta.

    Thanks

    Plugin Author Code Amp

    (@codeamp)

    Hi Sallie

    I granted you access to the file (I made it public as it should have been in the end).

    Let me know how that works out for you.

    Best
    – Ross

    Plugin Author Code Amp

    (@codeamp)

    Hey Sallie

    How did you get on with that? Am I ok to close this ticket (and I’ll make sure those changes made are in our next official update)

    Thanks

    Thread Starter Sallie Goetsch

    (@wpfangirl)

    I have of course had to do a zillion other things and not tested it, but I’m going to take your word for it that it’s fixed now, so you can go ahead and mark this resolved, or I will. Thank you!

    Plugin Author Code Amp

    (@codeamp)

    Hey @wpfangirl thanks for the udpate, I’ll close for now but feel free to let me know how you got on and re-open this issue should you need to.

    Cheers!
    – Ross

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Modify color palette’ is closed to new replies.