Reputation: 103
I've recently taken over a website from my colleague to manage, I used to use the html Text editor to update my page, but I'm not sure what he's done, the text editor is not showing any html codes, it does have part of the content but they're pure texts not html. Where can I change the setting in order to retain access to html text in word press?
I've tried deactivating all plugin (except UpDraftPlus Backup), but it doesn't work.
Upvotes: 0
Views: 12801
Reputation: 1845
Check the wp-config.php
file. You can hide some options from the WordPress editor, using:
define( 'DISALLOW_FILE_EDIT', true );
Also, try to test in another theme. A simple script in functions.php
fixes that.
https://developer.wordpress.org/reference/functions/wp_editor/
Upvotes: 2
Reputation: 1
In my case it was wp_post Auto Increment value which was unset due to database import.
SELECT `AUTO_INCREMENT`
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'Database'
AND TABLE_NAME = 'wp_post';
ALTER TABLE wp_posts AUTO_INCREMENT=101
Upvotes: 0
Reputation: 51
Find file wp-config.php at wordpress,
define( 'DISALLOW_FILE_EDIT', true )
; comments or delete this code.
define( 'DISALLOW_FILE_EDIT', true );
this will help for security so once your work done please uncomment or write at wp-config.php
This file is located in the root of your WordPress file directory and contains your website's base configuration details, such as database connection information.
Disable the Plugin and Theme Editor
Occasionally you may wish to disable the plugin or theme editor to prevent overzealous users from being able to edit sensitive files and potentially crash the site. Disabling these also provides an additional layer of security if a hacker gains access to a well-privileged user account.
define( 'DISALLOW_FILE_EDIT', true );
Please note: the functionality of some plugins may be affected by the use of
current_user_can('edit_plugins')
in their code. Plugin authors should avoid checking for this capability, or at least check if this constant is set and display an appropriate error message. Be aware that if a plugin is not working this may be the cause.
Upvotes: 0
Reputation: 3919
You can also replace the HTML code by:
< = < or <
> = > or >
/ = /
] = ]
[ = [
" = " or "
' = '
“ = “ or “
” = ” or “
‘ = ‘ or ‘
’ = ’ or ’
& = & or &
So instead of
<div>
use
<div>
It works great for me
For more detail check this link
Upvotes: 1
Reputation: 234
Go to your User Profile under Dashboard > Users.
Make sure that "Disable the visual editor when writing" is not checked
Upvotes: 3