Support » Plugin: Plugin Notes Plus » How to change text color, size

  • Resolved todindiana



    I just downloaded this plug and am really happy with it. My main use case is to identify plugins that are critical or necessary for my blog to operate. To that end, I’d like to be able to change the text color to, for example, red, green, yellow. In your FAQ the list of allowable HTML tags didn’t include text styling. Can you provide me with a couple of hints on how to do this?

    Thank you,


Viewing 1 replies (of 1 total)
  • Plugin Author jamiebergen


    I’m glad the plugin is useful to you! One way that you could change the text color in your notes would be to allow the span tag with the style attribute.

    You could add this function to your functions.php file:

    function pnp_allow_span_style_tag( $allowed_tags ) {
        $allowed_tags['span']['style'] = array();
        return $allowed_tags;
    add_filter( 'plugin-notes-plus_allowed_html', 'pnp_allow_span_style_tag' );

    Then you could change the text color in your notes as follows:

    <span style="color:blue">This text is blue</span>

Viewing 1 replies (of 1 total)
  • The topic ‘How to change text color, size’ is closed to new replies.