Home>Support>Vantage Child Theme Not working

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:

URL: http://www.sandybernsteincomedy.com/

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, 2 months ago echrapaty

    here 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' );
    
    }
    
  2. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    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/

  3. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Looking at your source code it looks like your child theme is up and running.

  4. 9 years, 2 months ago echrapaty

    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?

  5. 9 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More