Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #108298
    thewebmistress
    Participant

    This is regarding the Free Clean Journal Theme – I have created a child theme. In my child theme, I copied over this directory and file from the parent theme – inc/clean-journal-structure.php because I want to edit this particular file, but not under the parent theme. Theoretically, I should now be able to edit this php file in my child theme folder and it should work. It’s not. I think I know why. The functions.php file in the parent theme is referencing this file inc/clean-journal-core.php, which is referencing the file I want inc/clean-journal-structure.php. So therefore, I think it’s ignoring my inc/clean-journal-structure.php in my child theme because it’s following what’s in the parent functions.php file, which loads along with the child theme functions.php file. The functions.php file in the child theme does not overwrite the functions.php in the parent theme. So, I’m not sure what to do. I feel like I need to add something to my functions.php file in my child theme to get it to reference my files in my child theme that are in the inc/ directory. If so, what do I need to add? If not, how can I get the site to look at my files under /inc? Thanks!

    #108309
    Mahesh
    Keymaster

    @thewebmistress: This is not possible. However, you can modify the function by copying it to child theme’s functions.php and override it. Hope you understand.

    Regards,
    Mahesh

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Files under inc/ directory in my child theme not working when I edit them’ is closed to new replies.