Child Theme: php file won't override the parent file, what does THEMELIB do?
-
I am using Graph Paper Press’ Gridline theme and want to change the number of news columns at the bottom of the home page to 3 rather than 5. I got this to work by editing the parent theme file (called ‘five.php’ and located in library>apps) but I would like to only have edits to the child theme so that I can update the parent theme as needed. I’ve tried putting an edited ‘five.php’ in the same folder and subfolder as the parent theme (this worked for another php file) within my child theme folder, but it’s not overriding the formatting of the parent theme in this case. I think the issue may be due to the fact that the ‘home.php’ file is what selects the ‘five.php’ file to run. This is the code in ‘home.php’ used to pull that file:
<?php //pull five categories $category_section = get_option('T_category_section'); if($category_section || (!$theme_options && !$category_section)) { include (THEMELIB . '/apps/five.php'); } ?>
I’ve tried some variations of changing the file path but they generate error messages. Can anyone tell me what the ‘THEMELIB’ part of that code is doing and how to replace it so that it grabs my edited ‘five.php’ file from within the child theme?
THANKS!
- The topic ‘Child Theme: php file won't override the parent file, what does THEMELIB do?’ is closed to new replies.