Overriding parent theme
-
I have a premium theme and I am using a child theme in order to make my personalizations.
The pages I create in the child theme will override the parent pages. No problem.
But the css will not override the parent css. The parent style.css is empty and all the css is located in a folder called css and the file theme.css.
I reproduced the files in my child-theme byt it does not matter if I make the changes in style.css or theme.css. None works.I created a functions file with this info:
<?php add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); }Any tips to give me how to make it work?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Overriding parent theme’ is closed to new replies.