Setting up Child Theme and having problems with the functions.php
-
Hi,
Please can somebody help? I have followed all the steps to setting up a child theme and am stuck on there you add the functions.php file to the child theme directory.
I’m using the below code but then trying to use the child theme via WordPress it keeps displaying the code at the top of the screen both on the back end and front, what am I doing wrong, is the code correct for the functions.php?
<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri(). ‘/style.css’ );
}Thanks in advance for your help!
The topic ‘Setting up Child Theme and having problems with the functions.php’ is closed to new replies.