• Resolved Mago7891

    (@mago7891)


    I have tried to make a child theme like the tutorial you have written but it doesn’t work.

    The system gives me an error:
    The following themes are installed but incomplete.
    Name Description
    Twenty Seventeen-child Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

    What can I do about it ?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • /*
    Theme Name: Your Theme Name
    Theme URI: You Site URI
    Author: the WordPress team
    Author URI: Author URI
    Version: version number
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    
    This theme, like WordPress, is licensed under the GPL.
    
    */

    Copy and paste the above code into your style.css, it will create your custom theme.

    Those instructions have always worked for me.
    Could you post your “style.css” file here.

    Thread Starter Mago7891

    (@mago7891)

    That’s the CSS:

    /*
    Theme Name: Twenty Seventeen-child
    Text Domain: twentyseventeen
    */

    // This @import line loads the stylesheet from the parent theme
    @import url(“../twentyseventeen/style.css”);

    // Now we can override styles from the parent theme…
    body {
    background: #eeeeee;
    }

    A child theme’s style.css needs to contain a Template: line that contains the name of the folder where the parent theme is located:

    Theme Name: Twenty Seventeen-child
    Text Domain: twentyseventeen
    Template: twentyseventeen
    
    Thread Starter Mago7891

    (@mago7891)

    Thanks a lot

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create a child theme’ is closed to new replies.