D
D
dimasibirak2016-11-20 22:26:59
WordPress
dimasibirak, 2016-11-20 22:26:59

How to display content-single-product reviews without tabs?

Good day, I’m asking for tips from knowledgeable people on how to display the feedback block in the product card, at the moment there are no tabs and, accordingly, there are no reviews, I don’t need tabs, but I can’t put my mind to the reviews, which function is responsible for displaying this block?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kozlov, 2016-11-21
@trampick

In the \woocommerce\templates\single-product\tabs file there is a tabs.php template file. Tabs
are displayed there.
In this file, first we get all the tabs
Then we loop through the $tabs array and output the tabs themselves and the content in them. The content is output by the function
You just need to find out for the feedback tab the values ​​of $tab['callback'], $key, $tab. After in the right place of the template content-single-product output
with the required settings.
The second option is to remake the tab.php template to suit your needs if you have not disabled its use before.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question