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.

Child theme not working.

Resolved 4 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Daniel Rodflor 11 years, 10 months ago

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

    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. Daniel Rodflor 11 years, 10 months ago

    Awesome, thank you so much. All good now.

    Have a good day.

  4. Andrew Misplon Staff 11 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread