Setting Up a Child Theme for VideoPlace

When customizing a theme, the best practice is to create a child theme. This way, when you update the parent theme, all of your changes will still remain intact. Creating a child theme is very simple if you use the steps below.

  • Using your preferred FTP client, navigate to the “themes” directory inside the “wp-content” directory and create a directory titled “videoplace-child”.
  • Once there, create a style.css file and add the following lines of code in there and save.
    /*
    Theme Name: VideoPlace Child
    Description: Child theme for VideoPlace theme
    Author:
    Template: videoplace
    */
  • Then create a functions.php file and add the following code and save.
    <?php
    function videoplace_child_theme_styles() {
    wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', ‘videoplace_child_theme_styles’ );