Start Your WordPress Site in Minutes

How to Access the Source Code — I Don’t See the Editor Feature

Latest update 7 September 2020 Published 13 July 2020 WordPress Tutorials
WordPress

A question asked by one of the WP Pour les Nuls readers:

Is there a plugin I could use to remove the features that generate JavaScript code in my website, causing a 404 error?

I’ve identified the feature and just want to remove it, but I don’t have access to the source code for my website. All I can do is add new snippets, but I can’t remove the code.

You can edit your file using FTP software, either through the cPanel or directly from the WordPress console (Appearance -> Editor).

Sometimes, this functionality isn’t available in your WordPress dashboard. So how do you activate it then…

How to activate the theme editor in WordPress?

The first step is to download an FTP software program like Filezilla. Your hosting company should have provided you with all the information you need to connect to your server via FTP.

Once you’re connected, you can immediately start modifying the content of the website files you want to change.

Regarding your problem viewing the Editor feature in the Appearance menu, open the “wp-config.php” file in your FTP software, located in the root directory of your WordPress installation (often in “public_html”). Try to find this line of code:

define('DISALLOW_FILE_EDIT', false);

If it’s there, all you have to do is delete it. If it’s not there, add it with the value “true”.