override theme-functions.php
How do you override theme-functions?
I have this already for content-portfolio:
require_once( get_stylesheet_directory() .'/includes/content-portfolio.php' );
and it's working fine (like suggested here).
And tried the same for theme-functions:
require_once( get_stylesheet_directory() .'/functions/theme-functions.php' );
But all I get is a blank page.
Not even an error (and WP_DEBUG is set to true)
I have this already for content-portfolio:
require_once( get_stylesheet_directory() .'/includes/content-portfolio.php' );
and it's working fine (like suggested here).
And tried the same for theme-functions:
require_once( get_stylesheet_directory() .'/functions/theme-functions.php' );
But all I get is a blank page.
Not even an error (and WP_DEBUG is set to true)
Comments
please make sure that you have copied all of the files from the parent theme to the child theme. It is important that those files exist and the directory path is also the same.
thanks
I'll try that. I only copied the files I wantes to use.
That should be it.