Hi DataSplit. The other piece you need is to load the alx-posts template from your child theme. The theme defaults to loading the template from the theme directory using the following function:
function alx_load() {
// Load theme languages
load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
// Load theme options and meta boxes
load_template( get_template_directory() . '/functions/theme-options.php' );
load_template( get_template_directory() . '/functions/meta-boxes.php' );
// Load custom widgets
load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );
load_template( get_template_directory() . '/functions/widgets/alx-video.php' );
load_template( get_template_directory() . '/functions/widgets/alx-posts.php' );
// Load custom shortcodes
load_template( get_template_directory() . '/functions/shortcodes.php' );
// Load dynamic styles
load_template( get_template_directory() . '/functions/dynamic-styles.php' );
// Load TGM plugin activation
load_template( get_template_directory() . '/functions/class-tgm-plugin-activation.php' );
}
Copy that entire function to your child theme functions.php file, and change the alx-posts line as follows:
load_template( get_stylesheet_directory() . '/functions/widgets/alx-posts.php' );
That should fix it.
This code breaks the site. Specifically, it does it at line 501. Looks like you are trying to load a file that I don’t have. What is with the shortcodes.php?
My apologies. What I posted is the function from v2.2.2 on the theme website. If you’re using the version from the wp.org theme repository (currently v1.5.1) you would remove that line from the function.
Why is the website 2.2.2 and the WordPress theme option 1.5.1? That seems like a pretty big gap.
They share the same base code but the website version contains additional functionality. This is from the web site:
Note: The version of Hueman available on wordpress.org is a “lite” version, and does not include sharing buttons, tracking code field, basic shortcodes and some other things as it is seen as plugin territory.