3

In this line you use variable called $parent_style wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array($parent_style)); but you don’t define such variable anywhere in your code. Most probably you want to use the slug of parent style instead: wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', ...


1

As stated in the Theme handbook (https://developer.wordpress.org/themes/advanced-topics/child-themes/) you need to use the parent theme dir name in the 'Template' header. In your case the template name would be. Template: fitness-hub


1

I assume it's only the child-theme which encounters this error - and therefore it is probably a small error - but not seeing any errors in the logs makes it harder to determine exactly where the error is. First of all, I would suggest you turn on your WP_DEBUG in the wp-config.php, maybe there's an error you're missing. You can find more information on the ...


1

Here's couple examples on how to determine which page you're on within a filter and how to return different data based on it. On these examples I'm using the apply_filter() part of the code you linked to to hook the custom code to the theme code. The custom function recieves the variabels from apply_filter() as parameters. The custom function should ...


1

Found a solution that works for me: add_action( 'after_setup_theme', 'avia_lang_setup' ); function avia_lang_setup() { $lang = apply_filters('parent-theme-slug', get_template_directory() . '/lang'); load_theme_textdomain('avia_framework', $lang); load_child_theme_textdomain( 'child-theme-text-domain', get_stylesheet_directory() . '/lang' ); } ...


Only top voted, non community-wiki answers of a minimum length are eligible