Hello all,
If you make a normal page in wordpress and you want to change things you can edit the page.php file. But where can I found the php file of the product page?
Thanks
Hello all,
If you make a normal page in wordpress and you want to change things you can edit the page.php file. But where can I found the php file of the product page?
Thanks
Is there anybody who knows this?
Thanksss
hey! the product page is located in the woocommerce plugin folder at templates single-product.php
however woocommerce uses a very sophisticated "hook" system so themes can apply there own structure to template. depending on what you want to accomplish you either can add the code directly to the single-product.php file or you need to hook into those advanced functions that woocommerce provides...
Well, I want to add a custom div under the page. I don“t know if this is possible?
Hey!
Yes, just create a div below <?php do_action('woocommerce_after_shop_loop'); ?> on the loop-shop.php file inside woocommerce templates folder.
Regards,
Ismael
It works not entirely as it shoot. In the main collection it shows the div (not in the right position) but when I go to a single product page it is gone. Well I have a second tab and if I click on it it appears. So it is not on every page.
Thanks,
Martijn
Hi!
You also need to modify single-product.php - you can add your custom code after following line:
<?php do_action('woocommerce_after_main_content'); ?>
Best regards,
Peter
You must log in to post.