Woocommerce Theme ReviewsComments

admin2025-01-08  5

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it.

I don't have a /comments.php file in my theme root but i'm trying to use this:

comments_template( 'single-product/reviews.php' ); 

I don't know why but it's showing the default code with the avatar images and that. I don't need this. Basically I just need their name and 5 stars (using font-awesome). I know I don't have much code to show as i'm getting stuck at the comments template. Even if I try comments_template( '' ); it displays the default wp template.

This comments function is is called from content-single-product.php if that is anything. It might be important to note i'm building this ontop of underscores, that might.

Would it be worth just coding the review section manually? I'm only listing the reviews and outputting the form right?

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it.

I don't have a /comments.php file in my theme root but i'm trying to use this:

comments_template( 'single-product/reviews.php' ); 

I don't know why but it's showing the default code with the avatar images and that. I don't need this. Basically I just need their name and 5 stars (using font-awesome). I know I don't have much code to show as i'm getting stuck at the comments template. Even if I try comments_template( '' ); it displays the default wp template.

This comments function is is called from content-single-product.php if that is anything. It might be important to note i'm building this ontop of underscores, that might.

Would it be worth just coding the review section manually? I'm only listing the reviews and outputting the form right?

Share Improve this question asked Jul 3, 2015 at 12:42 Callum BonnymanCallum Bonnyman 1292 silver badges9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

content-single-product.php sounds like a woocommerce template, which is located here wp-content/plugins/woocommerce/templates. You can override this template in your theme or child them by creating a file wp-content/themes/your-theme/woocommerce/content-single-product.php.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736267482a1199.html

最新回复(0)