Hi @treebranch,
It’s probably because you’ve enqueued the Chaplin stylesheet in your child theme without adding the FontAwesome stylesheet as a dependency. Check the registered styles and dependencies in the parent theme, and make sure that the same list of dependencies are added to your child theme. If they are, the FontAwesome fonts will load and the icons will be displayed correctly.
— Anders
Hi Anders,
thanks for your reply, now I understand and fixed the issue. In case anyone needs it for his/her childtheme:
Add this code to functions.php in your child-theme folder:
// Connect Child Theme and Parent Theme
add_action( ‘wp_enqueue_scripts’, ‘chaplin_child_enqueue_styles’ );
function chaplin_child_enqueue_styles() {
$parent_style = ‘chaplin-style’;
wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘chaplin-font-awesome’, get_template_directory_uri() . ‘/assets/css/font-awesome.css’, false, 1.0, ‘all’ );
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’));
}
kind regards,
treebranch
Thanks treebranch, but be careful: the quotes in your code must be straightened. Still, the social icons don’t show up in my case…