Open jcockroft64 opened 1 year ago
This is a common issue in Wordpress in that when changing between the visual and code editors, <p>
and <br>
tags are inserted, messing up with the formatting. The solution is to disable the visual text editor, as changing between the visual editor and code editor changes the structure of the code.
functions.php
Out of all the solutions I found, the most effective solution involves inserting code into functions.php
https://www.softaox.info/remove-disable-visual-editor-mode-in-wordpress-for-users/
add_filter( 'user_can_richedit' , '__return_false', 50 );
The above code will disable overall user access from the WYSIWG editor mode.
This can be done by going into your profile and clicking "Disable the visual editor when writing". This isn't ideal, as there's no setting in the users menu to do this for all users https://www.wpbeginner.com/beginners-guide/how-to-remove-visual-editor-mode-in-wordpress/ https://www.joshstauffer.com/wordpress-stop-changing-my-html-code/ https://www.greengeeks.com/tutorials/how-to-easily-disable-the-visual-editor-mode-in-wordpress/
There's a Stackexchange post about this issue. Several posted plugins for preventing the visual editor https://wordpress.stackexchange.com/questions/17123/keep-html-format-when-switching-from-visual-to-html-editor
Out of all of them, this is the only plugin that's maintained:
https://wordpress.org/plugins/raw-html/
This plugin works by letting the user use [raw]
tags as a means to preserve the custom HTML. In the free version, this can be done in the code editor only, while the pro version allows it to be done in the visual editor too.
Overall, the solution involving adding code to functions.php
is most effective, as it disables the visual editor for all users without the use of any plugins.
In the Overview tables, the lines over-run between variable/value pairs. Each variable & value should have a separate line. This is strange since I originally copied Clouds Rest to JMT Northern Extension & then edited. However, i do recall doing some changes in the text mode of the table -- well i must have to add new values and delete a few buttons.