Skip to:
Content
Pages
Categories
Search
Top
Bottom

font size and color plugin

  • I was wondering if there’s a plugin already out there for font size and font color. They should enable the font tag or style=””; in the tags. Also, why can’t we use heading tags such as <h1> or choose an image width and height in our image tags?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nevermind. I created a plugin that I can modify anytime I want. Here’s the code if you’re interested. You don’t even need the add image plugin.

    <?php
    /*
    Plugin name: Extra html tags
    plugin author: Sue
    plugin description: Allow extra html tags, even depreciated
    */

    function allow_extra_tags( $tags )
    {
    $tags['a'] = array(
    'href' => array(),
    'title' => array(),
    'rel' => array(),
    'target' => array(),
    'alt' => array()
    );
    $tags['i'] = array();
    $tags['b'] = array();
    $tags['del'] = array();
    $tags['p'] = array(
    'style'=> array()
    );
    $tags['strike'] = array();
    $tags['img'] = array(
    'src'=> array(),
    'alt' => array(),
    'title' => array(),
    'width' => array(),
    'height' => array(),
    'style' => array()
    );
    $tags['font'] = array(
    'style' => array(),
    );
    $tags['br'] = array();
    $tags['h1'] = array();
    $tags['h2'] = array();
    $tags['h3'] = array();
    $tags['h4'] = array();

    return $tags;
    }
    add_filter( 'bb_allowed_tags', 'allow_extra_tags' );
    ?>


    anasohbet
    Member

    @anasohbet

    Thnks, itissue.


    Rackmire
    Participant

    @rackmire

    Hi,

    how does this work? how to implement this?

    I’ve tried creating a plugin folder and putting it within a new file, it appears in the plugins area and i click activate but nothing happens. Do I need any extra code to insert in my theme files for it to relate to?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.