How to add custom code in child theme’s functions.php

You are here:
Estimated reading time: < 1 min

Basic code editing method

The easiest way of editing the child theme’s functions.php file to add your custom code is to:

  1. Open Appearance > Theme Editor;
  2. Select Rey-child in the top right select list;
  3. Click on the Theme Functions.
  4. Add your custom code in the editor.

Please make sure the code is valid and doesn’t have errors. Otherwise you can lockdown your site. Normally the safest way is through FTP or cPanel’s File manager, however if you know exactly that your code is valid, please proceed.

Alternative methods

If the basic method described above fails for whatever reason, you can try using some of these plugins:

  • AceIDE . This will provide access to the wp-content folder.
  • WP File Manager . This plugin provides access to the entire root.
Was this article helpful?
Dislike 0
Views: 28

Join the conversation