This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to create child theme of vantage?

Resolved 5 replies premiumthemetheme-vantage
10 years ago · Last reply by Ronald Minerd 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Magus Staff 10 years, 10 months ago

    Hi Khushal

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

    <?php
    // Exit if accessed directly
    if ( !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. Khushal Singh Chouhan 10 years, 10 months ago

    Which theme should I activate?
    Child theme or parent theme

  3. Magus Staff 10 years, 10 months ago

    Hi Khushal Singh Chouhan

    Once built you should activate the child theme

    Magus

  4. Khushal Singh Chouhan 10 years, 10 months ago

    okay buddy,
    thanks for your asistance.

  5. Ronald Minerd 10 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread