• Am using wordpress version 2.3.3. Need to update (in increments to stay safe) plus make changes to site. Am trying to create a child theme to help protect existing theme/modifications – before updating or making changes. Unable to use Child Theme Configurator plugin due to outdated wordpress version. So, am trying to create a child theme manually. Message comes up saying ‘Broken theme – Template is missing’. Have tried entering template in style.css file in lowercase – still same message.

    Here’s the style.css info:
    /*
    Theme Name: BurnsideK2 Child
    Theme URI: http://burnsidecroft.com/BurnsideK2-child/
    Description: BurnsideK2 Child Theme
    Author: Ruth Thompson
    Author URI: http://burnsidecroft.com
    Template: burnsidek2
    Version: 1.0.0
    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: BurnsideK2-child
    */

    Here’s the function.php info:
    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘BurnsideK2-style’;

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    Have I done something wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • If this is a custom theme and you do not receive theme updates ( from WordPress repository or some premium service ) then there’s no real need to create a child theme. The purpose of child themes is to retain any changes should the parent theme be manually or automatically updated.

    Is the main theme folder named burnsidek2?

    Thread Starter ruth62

    (@ruth62)

    Thanks for your comments.
    Am not sure if its a custom theme. It’s based on the K2 theme.
    Do you think I could safely go ahead and upgrade WordPress manually and not lose any changes that may have been made?

    The main theme folder is BurnsideK2

    I’m not sure if the Template tag in style.css is case sensitive but if the folder name is “BurnsideK2” then the Template in style.css should be the same: BurnsideK2

    I’m not familiar with the K2 theme but if you’re not upgrading the theme then there won’t be theme changes. Updating WordPress isn’t the same as updating a theme or updating a plugin – they’re all separate. That being said since you’re on WordPress 2.3.3 and the current version is 5.0.2 you may run into compatibility issues with the theme or theme functions.

    It may not be a bad idea to create a local copy of WordPress using MAMP or WAMP and install the theme on the latest version of WordPress to see if there’s any issues.

    Thread Starter ruth62

    (@ruth62)

    Thanks again.
    Thats v helpful.
    Will try using MAMP plus latest version of wp to test theme.

    Thread Starter ruth62

    (@ruth62)

    Haven’t downloaded MAMP yet – am wary of the new version of WordPress overriding the old version.

    Am going to try & upgrade in small steps – maybe I’ll find a theme somewhere that is more likely to be compatible w newer WordPress version.

    The theme I am using is based on the K2 theme which was a default theme based on Kubrick. I think it was phased out or removed, maybe around 2010.

    A question: The codex instructions for upgrading – extended version, state DO NOT DELETE the .htaccess file. Have found 2 .htaccess files. One in root directory & one in WordPress folder. Do I save both those files?

    Also – I can’t seem to view them. If I need to modify them during the upgrade process, how will I be able to do that?

    I am using Filezilla and BBEdit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Template Missing Child Theme’ is closed to new replies.