Parent & Child Theme – …include?
-
Hi Everyone!
I got one BIG question: I made a (parent-)theme and are now going to build a child theme upon it (for the/my first time). Due to the fact, that i like to re-use parts of my work, i tend to make custom functions like “get_nav_web_main();” (and other custom files) to get some php-file from somewhere out of my folders (for e.g.:) /lib/functions/functions-module.php … which then looks in the code like this:
function get_nav_web_main() { $nav_web_main = include(D2THEMELIBNAV . '/nav-web-main.php') ; echo apply_filters('get_nav_web_main', $nav_web_main ); }
Now my question is: How can i include other files in my childthemes, or how do i override those functions?
I always made new themes out of my “base theme”, but i saw, that child-themes may be a much better (updateable) concept. I never made a child-theme before and the codex-documentation isn′t that much detailes, as i would need it in this case.
I Hope someone can lend me a helping hand or brain ??
Thanks a lot!
- The topic ‘Parent & Child Theme – …include?’ is closed to new replies.