child theme install help
URL to the page in question:
http://uscra.org
-
I’ve created a child theme for foundation called foundation-child, but it’s my first time and I don’t think I’ve got the right info inside the style.css and functions.php. I see funky things.
Here’s my style.css and the functions.php in the child folder. Can you tell me what I should change?
/*
Theme Name: Foundation
Theme URI: http://uscra.org/foundation-child/
Description: Foundation Child Theme
Author: CLN
Author URI: http://example.com
Template: foundation
Version: 3.2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: foundation-child
*/
functions.php:
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ ); function theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); }
I might have fixed it! Seems to be working now.
Also, I brought over the footer file, but it’s not showing up in the editor…yet.
I changed them to:
/*
Theme Name: Foundation-Child
Theme URI: http://uscra.org/cnwp/wp-content/themes/foundation-child
Description: Foundation Child Theme
Author: CLN
Author URI: http://example.com
Template: foundation
Version: 3.2.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: foundation-child
*/
AND
Yes, footer is there. Thank you!
Glad to hear that you’re good to go now. Not long ago the recommendation for loading styles from the parent theme was changed from an @include in the style.css file to a proper enqueue in the functions.php file. Ultimately either way works though.
Have a great week,
Bill
- The topic ‘child theme install help’ is closed to new replies.