• I’ve installed a child theme for twentyseventeen. Followed all the instructions. If I choose the theme I get the message:
    “This theme is broken. 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.”
    Additionally, when selecting the theme, instead of seeing just the title “twentyseventeen-child” in the select dropdown I see also the contents of the file displayed as follows:
    “Twenty Seventeen Child Theme Theme URI: https://bdcr.org.uk/ Description: Twenty Seventeen Child Theme Author: WordPress Author URI: https://cyberium.co.uk/ Template: twentyseventeen Description: Child theme for Twenty Seventeen. Version: 1.0.0 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Text Domain: twentyseventeen-child: Stylesheet (style.css)”

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cyberium

    (@cyberium)

    Here are the contents of the files:
    STYLE.CSS:
    /*
    Theme Name: Twenty Seventeen Child Theme
    Theme URI: https://bdcr.org.uk/
    Description: Twenty Seventeen Child Theme
    Author: WordPress
    Author URI: https://cyberium.co.uk/
    Template: twentyseventeen
    Description: Child theme for Twenty Seventeen.
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: twentyseventeen-child
    */

    /* Make sure play/pause button can be clicked on smaller screens */
    .wp-custom-header-video-button {
    z-index: 3;
    }

    .has-header-image .custom-header-media img, .has-header-video .custom-header-media video, .has-header-video .custom-header-media iframe {
    height: auto;
    min-height: 100px;
    }

    .has-header-image.twentyseventeen-front-page .custom-header, .has-header-video.twentyseventeen-front-page .custom-header, .has-header-image.home.blog .custom-header, .has-header-video.home.blog .custom-header {
    height: 60vw;
    }
    @media screen and (min-width: 48em)
    .has-header-image.twentyseventeen-front-page .custom-header, .has-header-video.twentyseventeen-front-page .custom-header, .has-header-image.home.blog .custom-header, .has-header-video.home.blog .custom-header {
    height: 60vw;
    }

    FUNCTIONS.PHP
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘twentyseventeen-style’ for the Twenty seventeen theme.

    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’)
    );
    }
    /**
    * Twenty Seventeen Child Theme functions
    *
    * @link https://developer.www.ads-software.com/themes/basics/theme-functions/
    *
    * @package WordPress
    * @subpackage Twenty_Seventeen
    * @since 1.0
    * Change the minimum screen size to use the video header
    */
    function twentyseventeenchild_video_size( $settings ) {
    $settings[‘minWidth’] = 100;
    $settings[‘minHeight’] = 100;
    return $settings;
    }
    add_filter( ‘header_video_settings’, ‘twentyseventeenchild_video_size’ );

    Thread Starter cyberium

    (@cyberium)

    My ultimate aim is to get the video on the front page header to show in all the interior page headers. if you can suggest a way to do this that would be amazing. The code I’ve put in the child theme is not working!

    lisa

    (@contentiskey)

    contact theme specific support for guidance:
    https://www.ads-software.com/support/theme/twentyseventeen/

    Thread Starter cyberium

    (@cyberium)

    Hi Lisa
    I followed your advice but it has still not worked. No change. Any other ideas please?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme install error message’ is closed to new replies.