Child Theme problem
-
I have this prob with the child theme ive created.Although i create a child theme with the method described at wordpress child theme tutorial (style.css,functions.php),when i activate the child theme it’s style is The parent’s theme default style and customization settings and doesnt include the theme customizations ive made to the parent theme.
As soon as i activate the parent theme again,the theme customizations ive made to it are there.
The theme’s template is onepress.
The functions.php file i ve made in the child themes directory is:
<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
?>and the style.css ive made in the child themes directory is :
/*
Theme Name: test
Theme URI: https://test.gr
Description: test Theme
Author: testing
Author URI: https://asdf.gr
Template: onepress
Version: 0.1
*/
- The topic ‘Child Theme problem’ is closed to new replies.