Vantage Child Theme Not working
Hello, I began with Vantage and tried to create a child theme. I used a header in my style.css file and used the functions.php method to import styles.
/* Theme Name: Vantage Child Author: SiteOrgin Template: vantage Version: 1.0.0 */
in the function.php doc:
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
5here is the code for the php file:
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); }Hi Echrapaty
Thanks for your support. Perhaps try our starter child theme for Vantage. You can find it here:
https://siteorigin.com/wp-content/uploads/2015/03/vantage-child-starter.zip
The ZIP can be installed from Appearance > Themes > Add New: Upload Theme. You could then upload your customized header.php file or other customized files to /wp-content/themes/vantage-child/
Looking at your source code it looks like your child theme is up and running.
Thanks so much. Yeah, the child theme is running. My problem is that my custom CSS code is only working when I use the Custom CSS area within the theme. When I save the same code to my style.css sheet in my child theme folder, the changes will not render. Any ideas as to why? Which is better to use – style.css or the custom css area?
Thanks for the feedback. Custom CSS is easier because there is a revision history in the right column so you can roll back changes.
I think your child theme style.css most likely is working. It is applied at a different point in the head so there might be a specificity/priority issue with a certain rule. If you want me to take a look further insert a rule into child style.css and let me know what it does and I’ll take a look.
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.