WooCommerce allows you to override its default templates. All templates are located in a woocommerce/templates
folder. All you have to do is to create a woocommerce
folder within your theme’s directory, and in this folder duplicate the files you’d like to override.
If you want to update the markup then you will need to copy archive-product.php
and content-product.php
files. If you just want to show a little description between the product name and price, then you can simply put following code into your theme’s functions.php
file.
function show_product_summary(){
$product_summary = get_the_excerpt();
echo '<div class="product-summary">'. substr( $product_summary , 0, 30 ) .'</div>';
}
add_action('woocommerce_shop_loop_item_title', 'show_product_summary', 10, 2);
You will see the product summary like below on product listing page.
Here is official blog post which will give you quick walkthrough.
Related Posts:
- Product page not found if product data is set Appointment Service
- How to *remove* a parent theme page template from a child theme?
- How to Change 404 page title
- how to override woocommerce specific loop or archive-product.php [closed]
- Get all products with a custom attribute
- How to redirect WordPress home page to custom static HTML page
- How can I create an alternative home page?
- pagination in woocommerce order history page
- page_template toggle between 2 templates + 2 permalinks for same post
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Disable email field on WooCommerce customer account details
- How do I deque the default stylesheet?
- Show post page only if the user has bought a specific product
- redirect product-category to a custom page
- For custom templates, is it better to use `template_include` or `type_template`?
- Setting up Different Layouts for Each Product Category and Subcategory [closed]
- How to redirect WooCommerce shop URL?
- Unable to display custom fields on WooCommerce product pages
- Send a custom WooCommerce email when custom order change [closed]
- Change WooCommerce product price based on category and GEO IP country
- Automatically Update Woocommerce Prices [closed]
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- Add custom field to woocommerce variations [closed]
- how to get the categories for a single product in a hierarchical way
- Viewing checkout page removes fees from mini cart
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- how do I remove the shipping from woocommerce thankyou page and from the email
- need help with a user-specific custom page template
- Woocomerce custom billing address fields display in order details [closed]
- Color swatches on category page? [closed]
- help to change some colors (woocomerce and store locator) [closed]
- Prepopulating a specific page template with HTML/CSS
- custom meta box for page default template
- No shipping method has been selected [closed]
- List top 5 authors with most posts
- How To Load an HTML File As A WordPress Page (With No 301/No Redirect)
- Best Practice – Customise a WooCommerce+WordPress Templates
- Changer numbers of columns in woocommerce shop
- Woocommerce product permalink not working
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- How to customize shipping region/states on WooCommerce
- Rename WooCommerce sorting dropdown options [closed]
- WooCommerce custom billing fields on email address
- How to create custom search page
- WordPress archive index page
- Woocommerce custom checkout form
- Woocommerce custom field calculation
- Hiding Short Description in Shop Page, WooCommerce
- wordpress shortcode not working
- How to create a custom WordPress front page
- Custom Same Page Search
- change top banner content on specific page
- How to set up conditionals in page templates?
- How To make Custom page of every Category
- Remove Sidebars from page
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- Customizing woocommerce product page
- Woocommerce custom archive page custom content and shortcode
- WP_Query – sort the results by meta value custom attribute wocoomerce
- customer specific email attachment
- Style WooCommerce Product Search Widget
- Query Product categories what have a custom field
- How to get the full product name by ignoring custom modification on it
- where is admin footer?
- Woocommerce custom “My Account” Tab – Add Save button
- Need to add custom text field to Woocommerce under add to cart button
- Moving Quantity after product description
- Custom product status get filtered on all product list views
- Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?
- Upload advanced custom field text link array with csv
- Woocommerce – Remove cart button depending product (post) status
- WordPress Performance and bulk edits
- Page with some post value id showing page not found
- Why does a custom php code inside a custom template not get executed?
- How to use the same custom page template to iframe multiple urls with entry of new url entered from backend
- I want to use a product thumbnail completely different than the product image
- Create page when a new site in multisite network is created?
- Including a Customized Initialize File with a wordpress header
- Send default WooCommerce email when switching from custom order status
- How to Remove wpautop in woocommerce includes folder class-wc-order-item.php
- Custom stylesheet not loading
- Displaying Child Page’s Information
- WooCommerce – Adding custom HTML to specific product pages
- How do I change text of a product template in a WooCommerce theme? [closed]
- Adding pages to the Admin panel
- Page template with custom html fields inside a content
- Single page template
- Adding page Title in a custom coded page
- WooCommerce customise checkout billing form [closed]
- Integrate Woocommerce to a custom theme
- woocommerce display product category on checkout page [closed]
- use another theme for just one page
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Change the User/ Author of the Products
- Show total sales for each products on search results page Woocommerce
- Change in credit card payment button for woocommerce
- How to display product variations on same row
- Custom product sorting archive page