WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dabney24
    Member
    Posted 11 months 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.

    http://wordpress.org/plugins/woocommerce/

  2. Doug Smith
    Member
    Posted 11 months 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
    Member
    Posted 5 months 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
    Member
    Posted 1 week 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
    Member
    Posted 5 days ago #

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

  6. whistlerdan
    Member
    Posted 5 days 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.

Reply

You must log in to post.

About this Plugin

About this Topic