But … when the theme of the site is updated, everything will disappear again.
The theme file will lose these functions again.
And again, the editor on the forum will disappear. It is so?
Thank you Robin W, everything is working now!
I did as you suggested – and it helped!)
—
I used:
add_filter (‘bbp_body_class’, ‘rew_unset_no_js’) ;
function rew_unset_no_js($classes) {
if (in_array (‘single-forum’, $classes) || in_array (‘single-topic’, $classes)) {
if (($key = array_search(‘no-js’, $classes)) !== false) {
unset($classes[$key]);
}
}
return $classes ;
}
Hey!
After updating to version 2.6.8, it also stopped working for us visual editor.
Please solve the problem and return to the forum visual editor.
Thanks!