What to do if the theme editor option in WordPress dashboard disappeared?

What to do if the theme editor option in WordPress dashboard disappeared?

This entry is part 3 of 4 in the series How & Why

There are different reasons for the disappearance of theme editor option in your WordPress dashboard.

Sometimes when you install a plugin, it may block the theme editor option and plugin editor option also. This is done particularly for the security reasons.
When you install a new theme in WordPress it may also disallow the theme editor option.

You can rectify this problem using two different methods.

Method #1

Go to your WP dashboard and navigate to Plugins menu. One by one deactivate all the plugins and check whether the theme editor option and plugin editor option appears again.

Note that to activate and deactivate plugins you need to have admin level privileges in WordPress dashboard.

If this method doesn’t work then you will have to edit wp-config.php file from the CPanel of your WordPress hosting.

Method #2

Login to the CPanel of your WordPress hosting and then go to file manager. Navigate to the root folder 📂 i.e. public_html and find the wp-config.php – read the instructions before editing this file. Now right click on the file and click edit.

The text editor will open in new tab where you have to insert the following piece of code at the beginning of the lines where the actual code starts.

define( 'DISALLOW_FILE_EDIT', false );
image 19 Vidyasagar Academy

Remember, if you write the value as true in above code, then the theme editor and plugin editor options will disappear.

Now save the file and return to your WP dashboard. Refresh the page and you will see the theme editor option and plugin editor option reappear on your dashboard.

image 20 Vidyasagar Academy
The Theme File Editor option is available now
image 21 Vidyasagar Academy
The Plugin File Editor option is available now
Share on your network!
Prof. Dattaraj Vidyasagar
Prof. Dattaraj Vidyasagar

Author on this website. He is veteran of Core Electronics since last 36+ years. ATL Mentor of Change, Niti Ayog, Govt. of India, Google Certified Educator, International Robotics Trainer and author of 18 books on electronics, robotics, programming languages and web designing... ➤➤

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x