Home>Support>Child theme not working.

Child theme not working.

I just create a child theme for my vantage theme in order to make some changes, however after paste my code, I don’t see any change. I know the code is correct since I used the same one directly on vantage on which by the way it totally work´s. This is how my style.css of my child theme looks with the code:

/*
Theme Name: Vantage child
Version: 1.0
Description: A child theme of Vantage Premium
Template: vantage
*/

@import url(“../vantage/style.css”);

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 3 months ago Daniel Rodflor

    /*
    Theme Name: Vantage child
    Version: 1.0
    Description: A child theme of Vantage Premium
    Template: vantage
    */

    @import url(“../vantage/style.css”);

    <?php
    /*
    * wc_remove_related_products
    *
    * Clear the query arguments for related products so none show.
    * Add this code to your theme functions.php file.
    */
    function wc_remove_related_products( $args ) {
    return array();
    }
    add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);

    This one includes the code.

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

    Hi Daniel

    In your second post you have PHP mixed in with CSS. Your original CSS looks correct. Here is how my demo Vantage child theme style.css looks.

    /*
     Theme Name:   Vantage Child
     Author:       SiteOrgin
     Template:     vantage
     Version:      1.0
    */
    
    @import url(“../vantage/style.css”);

    The PHP function you’d like to use needs to go in a blank functions.php file in your child theme. That file should looks as follows:

  3. 10 years, 2 months ago Daniel Rodflor

    Awesome, thank you so much. All good now.

    Have a good day.

  4. 10 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad you got that resolved.

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