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.

Vantage Child Theme Not working

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. echrapaty 10 years, 10 months ago

    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. Andrew Misplon Staff 10 years, 10 months ago

    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. Andrew Misplon Staff 10 years, 10 months ago

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

  4. echrapaty 10 years, 10 months ago

    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. Andrew Misplon Staff 10 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread