Forums

Child theme - how to call a .php file in a subfolder? (1 post)

  1. demonboy
    Member
    Posted 5 months ago #

    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?

Reply

You must log in to post.

About this Topic