Child Theme: Edit files in a subfolder of the parent theme – how?
-
Hey guys,
I have a question and I hope you can understand what I mean.I already have a working child theme and now I want to edit some files which are in subfolders of the parent theme. When I am editing this files and create a new subfolder in my child theme like this one in the parent theme the changes dont appear in the website.
What I have to do? My functions.php looks like the following right now:
<?php function theme_enqueue_styles(){ wp_deregister_style( 'font-awesome'); wp_register_style('font-awesome', get_template_directory_uri(). '/css/font-awesome.min.css'); wp_enqueue_style('font-awesome', get_template_directory_uri(). '/css/font-awesome.min.css'); wp_deregister_style( 'bootstrap.css'); wp_register_style('bootstrap.css', get_template_directory_uri(). '/css/bootstrap.min.css'); wp_enqueue_style('bootstrap.css', get_template_directory_uri(). '/css/bootstrap.min.css'); wp_deregister_style( 'cda-style'); wp_register_style('cda-style', get_template_directory_uri(). '/style.css'); wp_enqueue_style('cda-style', get_template_directory_uri(). '/style.css'); wp_enqueue_style( 'childtheme-style', get_stylesheet_directory_uri().'/style.css', array('cda-style') ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );?>
Yours sincerely
Sandro
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Child Theme: Edit files in a subfolder of the parent theme – how?’ is closed to new replies.