Creating a Child Theme
-
Hi all,
I read the instructions related to how create a Child Theme in WP (https://codex.www.ads-software.com/Child_Themes).
Following the method describe into this document, you have to create the style.css and functions.php files and include the code below. For my theme (Musictheme) I need to create this Child theme but I have many *.css files (admin_style.css; theme-style.css;
style.css; rtl.css; rtl-bootstrap.css; jquery.mmenu.all.css; ie.css; font-awesome.min.css; jquery.ui.all.min.css; jquery.ui.all.css; component.css; colors.css; bootstrap.min.css).My questions are:
1.How do I have to consider all these files into the code below?
2. Do I have to create others additional *.css files (or *.php) within Child Theme folder?
3. If I use “Custom CSS Editor” within dashboard in WordPress. How do I have to consider this file generated into wordpress’ folder to create the Child Theme? Any consideration into the code below?Thanks for your help
style.css:
/* Theme Name: Twenty Fifteen Child Theme URI: https://example.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe Author URI: https://example.com Template: twentyfifteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twenty-fifteen-child */
functions.php:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
- The topic ‘Creating a Child Theme’ is closed to new replies.