Why is my functions.php file not found?
-
I’m trying to create a child theme in WordPress but am having a problem at a very simple stage, but one that I can’t seem to debug.
I have created the simplest possible child theme in WordPress 5.0.1: I created a directory /wp-content/themes/example
This directory contains just css/style.css and functions.php (both are owned by www-data and have permissions 755 for the directory and 644 for files)
The style.css contains the required header
/* Theme Name: Example Theme URI: https://aaa.bb.cc/ Description: A child theme of Enlighten Author: Me Author URI: https://aaaa.bb.cc Template: enlighten Version: 0.0.1 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: Example Text Domain: example */
and functions.php contains only the opening php tag.
This new “Example” theme is visible to WordPress and can be activated, but the functions.php file seems completely invisible to WordPress. If I include functions in it, they are not run. It is not listed in the WordPress theme editor.
Can anyone tell me what I’m missing?
- The topic ‘Why is my functions.php file not found?’ is closed to new replies.