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”);
/*
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.
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.
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:
Awesome, thank you so much. All good now.
Have a good day.
Super, glad you got that resolved.