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' );
?>
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