WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Specify Possible Font Colors (2 posts)

  1. dvent
    Member
    Posted 1 year ago #

    I am building a site for a client.

    They have a style guide containing 8 possible font colors.

    Is there a way I can edit the theme or wordpress files to only allow a font to be set as one of these 8 colors in the WYSIWYG editor?

    Thanks
    dvent

  2. dvent
    Member
    Posted 1 year ago #

    Added the following code to functions.php

    function make_mce_awesome( $init ) {
        $init['theme_advanced_text_colors'] = '000000,ed1b24,f6a41d';
        return $init;
    }

    Add colors as required...

Topic Closed

This topic has been closed to new replies.

About this Topic