Best Practice for custom functions in child theme

  • In Progress
    Posted in: Aegaeus WP Theme  
  • Customer
    ecoevolver
    July 7, 2014 at 5:48 pm #5101

    Hi there,

    I am using the Child Theme for customizations. However, if I want to add new page types with custom functions to the Child theme, I want to store the custom-function.php in the Child Theme directory, not the Aegaeus functions folder.

    Right now, you load functions with:
    define ( ‘HBTHEMES_FUNCTIONS’ , get_template_directory() . ‘/functions’ );

    How would you load functions from the child theme?

    I would like something like:
    define ( ‘HBTHEMES_CHILD_FUNCTIONS’, get_template_child_directory() . ‘/functions’):

    I want to do this so when I update the theme I can delete everything and upload easily without worrying about deleting files.

    Thank you!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.