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.
Need fast email support? Get SiteOrigin Premium
Replies
5Hi 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
Which theme should I activate?
Child theme or parent theme
Hi Khushal Singh Chouhan
Once built you should activate the child theme
Magus
okay buddy,
thanks for your asistance.
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.