yo guys,
got the following custom tooltip in my code, but whenever i switch from html to visual views in write post manager WP strips out the enpty <span></span> for me, which i don't want to happen:
FROM
<a class="tt" href="http://wordpress.org/">WordPress<span class="tooltip"><span class="top"></span><span class="middle">Check out the world famous blogging tool</span><span class="bottom"></span></span></a>
TO
<a class="tt" href="http://wordpress.org/">WordPress<span class="tooltip"><span class="middle">Check out the world famous blogging tool</span></span></a>
have implmented this (http://maisonbisson.com/blog/post/11674/wordpress-strips-classnames-and-how-to-fix-it/) in the kses.php file, but no luck:
if (!CUSTOM_TAGS) {
/**
* Kses global for default allowable HTML tags
*
* Can be override by using CUSTOM_TAGS constant
* @global array $allowedposttags
* @since 2.0.0
*/
$allowedposttags = array(
'top' => array(),
'bottom' => array(),
'address' => array(),
'a' => array(
'class' => array (),
'href' => array (),
'id' => array (),
'title' => array (),
'rel' => array (),
'rev' => array (),
'name' => array (),
'target' => array()),
any thoughts guys?
cheers,
lewis