Hi all, I have done plugin conflicting test on my site but couldn’t find the cause of the issue. Can anyone help to solve it or guide me on this?
Regards.
You need to pick the allowed html tags that the users can use in your “functions.php”, like so:
function wp_bbpress_allow_tags(){
return array(
'span'=> array(
'class' => true,
'style' => true,
),
// add other tags to allow here
);
}
add_filter('bbp_kses_allowed_tags', 'wp_bbpress_allow_tags');
Keep in mind the tags you pick here are the only tags that will be allowed, so list all of them here.
Don’t ask me why the default allowed tags are different than the default shown TinyMCE buttons.
@houd, thanks for your help.
I tried your code but the ‘span’ tag does not work as expected.
Strangely, I think the code itself is correct because ‘strong’ tag (bold text) does work when I added it in the code for testing purpose. Like this:
function wp_bbpress_allow_tags(){
return array(
'span'=> array(
'class' => true,
'style' => true,
),
'strong' => array(),
);
}
add_filter('bbp_kses_allowed_tags', 'wp_bbpress_allow_tags');
Don’t know what go wrong.