• Hi there,
    I want to include some code snippet in my functions.php file but as a novice to WordPress I don’t know where to find it? Any answer on Google suggests I go to Dashboard-Appearance-Editor but in my version of WordPress there is no Editor option. Is there any way to access functions.php through the dashboard? I can’t use FileZilla or anything as I’m not the owner of the website and thus don’t have access to all the login info.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • anonymized-13749270

    (@anonymized-13749270)

    Your theme/plugins editor is disabled, it happened to me when I didn’t update my theme for a long time..
    You need to login to your server ( ex CPanel ) using the logging details your hosting provider has given you, and go to the root directory ( CPanel: file manager, public_html ).

    Edit wp-config.php, add this like of code in the bottom:

    define('DISALLOW_FILE_EDIT',false);

    Save, refresh, and see if you can edit theme/plugins from the dashboard.

    If you could login to your server, you could make edits from there.

    Thread Starter samz_manu

    (@samz_manu)

    Is that the only way to do this? As I mentioned, I don’t really have access to all the hosting provider details as I’m not the owner or creator of the website. Just a contributor. And I’m implementing a plugin that requires me to play around with functions.php a bit. Is there any way to re-enable theme/plugins editor without accessing the root directory?

    Thanks

    If you are an admin user, you have access to it through Appearance >> Editor. Contributors do not have access to the editor.

    You will need to talk to whoever is in charge of your site.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to access functions.php’ is closed to new replies.