Home>Support>How to create child theme of vantage?

How to create child theme of vantage?

I want to create child theme of vantage premium theme. I followed the steps which are given on wordpress website:
1.created folder under vantage-child under themes folder.
2Added style.css and functions.php.
style.css:

/*
Theme Name: Vantage Child
Author: SiteOrigin
Template: vantage
Version: 1.0.0
*/

functions.php:

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 months ago Magus
    Hi, I Work Here

    Hi Khushal

    Your child-theme functions.php should contain this content at a minimum.

    <?php// Exit if accessed directlyif ( !defined( 'ABSPATH' ) ) exit;// BEGIN ENQUEUE PARENT ACTION// Do not modify or remove comment markers above or below:        if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):    function chld_thm_cfg_parent_css() {        wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' );    }endif;add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' );// END ENQUEUE PARENT ACTION?>

    You should then be able to activate your child-theme.

    Magus

  2. 9 years, 3 months ago Khushal Singh Chouhan

    Which theme should I activate?
    Child theme or parent theme

  3. 9 years, 3 months ago Magus
    Hi, I Work Here

    Hi Khushal Singh Chouhan

    Once built you should activate the child theme

    Magus

  4. 9 years, 3 months ago Khushal Singh Chouhan

    okay buddy,
    thanks for your asistance.

  5. 9 years, 3 months ago Ronald Minerd

    Thanks Magus–my child theme was all of a sudden broker, but ny adding the functions.php a you described above–it solved the problem.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More