WordPress.org

Ready to get started?Download WordPress

Forums

Shortcoder
Trying to add parameter for CSS colour (1 post)

  1. dmpp
    Member
    Posted 11 months ago #

    I'm using this code:`

    <div style="background-color:#d6ab29;color:%%text-color%%;padding:10px;margin:0 0 10px 0; text-align:center;">%%text%%</div>

    When I go to insert the shortcode with the tinyMCE option, it shows the parameter for me to fill it in. If I put in "black" or #000 or #000000 it doesn't actually make the text black.

    When I look at the outputted code to the browser, this is what shows up:

    <div style="background-color:#d6ab29;color:;padding:10px;margin:0 0 10px 0; text-align:center;">This is my text!!!</div>

    Any thoughts?

    http://wordpress.org/plugins/shortcoder/

Reply

You must log in to post.

About this Plugin

About this Topic