0

I have installed a theme with visual composer on my wordpress and everything was working fine until I added a widget above the header.

From that moment on, every time I want to create a new entry the RTE is always on text mode instead of visual.

I find it really weird that my customization have caused this, does anyone has another explanation and/or solution?

Thanks in advance!

0

Can't really think of a reason for the behaviour, maybe it is just a bug in the theme, of course I can't say anything specific without knowing the code. But you should be able get around it by making use of the wp_default_editor hook and explicitly set the type of editor you want to show first, which is inside the function with the same name, so wp_default_editor().

function wpse194059_set_wp_default_editor( $editor ) {
  // possible values are: 
  // tinymce - visual mode
  // html - text mode
  return 'tinymce';
}
add_filter( 'wp_default_editor', 'wpse194059_set_wp_default_editor' );
  • It sounds good but where do I add that code? functions.php? – viriato Jul 13 '15 at 9:38
  • I applied the code you provided on functions.php and the system is now loading up first the visual editor but it changes automatically to the text editor. What could possibly be causing this? – viriato Jul 13 '15 at 9:41
  • Can't tell exactly, as said, it might be some bug with your theme or a plug-in. @viriato – Nicolai Jul 13 '15 at 10:40
  • I have been googling about this and trying to find all possible solutions and applying. The result is still the same no matter what i do. Is there a way to overwrite this? – viriato Jul 13 '15 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.