Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #10416

    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?



    Is there anybody who knows this?



    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?



    Yes, just create a div below <?php do_action(‘woocommerce_after_shop_loop’); ?> on the loop-shop.php file inside woocommerce templates folder.




    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.





    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,


Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Product page’ is closed to new replies.