Child theme – how to call a .php file in a subfolder?
-
I understand how to call the style.css in my child theme
/* Theme Name: suffusion-child Description: Child theme for the suffusion theme Author: Jamie Furlong Template: suffusion */ @import url("../suffusion/style.css");
And I understand that my child theme functions.php is appended to the main functions.php file.
But how do I call the file ‘post-header.php’ which sits in a subfolder called ‘custom’ in my child-theme?
I have read this article and am unsure if I am supposed to add
require_once( get_stylesheet_directory(). '/custom/post-header.php' );
to my child functions.php. I have tried this already but nothing has changed.I know this is a simple problem, but what’s the solution?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Child theme – how to call a .php file in a subfolder?’ is closed to new replies.