child theme install help

Support Area Forums Foundation child theme install help

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://uscra.org
  • Author
    Posts
  • #31492
    rainbowsplash
    Participant

    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’ ); }

    #31495
    rainbowsplash
    Participant

    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

    #31496
    rainbowsplash
    Participant

    Yes, footer is there. Thank you!

    #31504
    Bill Robbins
    Moderator

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘child theme install help’ is closed to new replies.