Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmike cee
7,302 Pointscant make a child theme
i have completed the bootstrap to wordpress module. i have nott been able to make a child theme from the parent theme. please help.
3 Answers
mike cee
7,302 Pointsactually i got it to work.however, i cant load a background header image.. for some strange reason i can style and modify the child css exept i wont load my background image..
Madhan Karthik
4,239 PointsOkay fine.I can help you on that.Could you share your module??.Share the Dropbox / Google drive link.
mike cee
7,302 Points<?php add_action( 'wp_enqueue_scripts', 'theme_styles' );
function theme_styles() {
wp_enqueue_style( 'bs-css', get_template_directory_uri() . '/css/bootstrap.min.css' );
wp_enqueue_style( 'bootstrap-to-wp-css', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-css', get_stylesheet_directory_uri() . '/style.css' );
} ?> my only problem right now is that i cant load my background image in the header. i get a 404 error message even thought the path is correct.
Madhan Karthik
4,239 PointsSeems you might have permission issue in the image file, If the path is correct.
Madhan Karthik
4,239 PointsMadhan Karthik
4,239 PointsHi Mike, Creating the Child theme is pretty simple after the creating a theme in bootstrap.Just do the following steps you will be. Step 1: Copy and paste your newly created bootstrap theme folder and rename it of your wish. Step 2: Go to style.css in the renamed theme folder. Step 3: Enter the below lines in the css file
/* Theme Name: My First Child Theme Theme URI: https://wordpress.org Author: the WordPress team Author URI: https://wordpress.org/ Template: parent_theme_name Description: Description for the theme Version: 1.0 */
Note : These comment lines are pretty important when it comes to Wordpress. It gives the informations about the files.Please make sure that you entered correct parent_theme_name in the Template field.
That's it.