How to edit WooCommerce product template page? (6 posts)

  1. dabney24
    Posted 2 years ago #

    Need to add custom html (button link) below the short description in WooCommerce on the product page. Tried editing the single-product.php, but no luck.


  2. Doug Smith
    Posted 2 years ago #

    First, if you didn't already know, you can make a copy of any of the built-in template files and place them in your theme to override the built-in template. You create a /woocommerce folder in your theme then mimic the folder and file structure of any templates you want to modify from the /templates folder in the WooCommerce plugin.

    In this case, you would have /woocommerce/single-product/short-description.php in your template.

    Try inserting your html at the end of that file, right after the <div itemprop="description"> block.

  3. EnamoredOwl
    Posted 2 years ago #

    A web designer... I am not. I am trying to change the appearance of a few things on the product page, but I am not super html/css savy. Is there an option in the settings somewhere where I can change the "add to cart" button to a custom button? Also, I don't want to price range of my products to appear on the product page under the heading. How do I delete that? Last thing... The drop down menus for my product variations are huge. Can I make them and the font smaller?

    I need like editing your woocommerce/virtue theme for dummies. :(

  4. whistlerdan
    Posted 1 year ago #

    I've tried this and none of the changes in my modified templates are showing up.

    Are you sure that all you have to do is recreate the template structure within my theme folder?

  5. Doug Smith
    Posted 1 year ago #

    @whistlerdan, Yes that's all that is needed. Which template are you trying to override?

  6. whistlerdan
    Posted 1 year ago #

    Thanks Doug, in the end I figured it out. I was including a sub-folder "templates" in my woocommerce folder in my theme folder. Silly error.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic