I just installed ProHauz and ProHauz Child, I am using the child theme. I added a custom font and styling to style.css. However, the style isn´t applied. It seems that the style.css from the child theme is not used.
The necessary code in functions.php is there and I have the child theme activated.
Hi,
I just installed ProHauz and ProHauz Child, I am using the child theme. I added a custom font and styling to style.css. However, the style isn´t applied. It seems that the style.css from the child theme is not used.
The necessary code in functions.php is there and I have the child theme activated.
Hi Patrick,
Thanks for the purchase.
Can you please paste the code from your child theme's functions.php so we can take a closer look?
Thanks in advance.
Regards, BoldThemes team
If you like our products please consider leaving us a rating.
A huge thank you from BoldThemes in advance!
Hi,
I use the child-theme that came with the purchase and didn´t change the code in functions.php:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_parent_theme_file_uri( 'style.css' ) );
wp_enqueue_style( 'child-style',
get_theme_file_uri( 'style.css' ),
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Hi,
You are right, it is our mistake.
The code should be:
so prohauz-style instead of parent-style.
We will correct that with the next theme update.
Regards, BoldThemes team
If you like our products please consider leaving us a rating.
A huge thank you from BoldThemes in advance!
Thanks for your fast reply, it works now.