Skip to content

Instantly share code, notes, and snippets.

Avatar

Sumaiya Mim mimsumaiya

  • Dhaka,Bangladesh
View GitHub Profile
@om4james
om4james / functions.php
Last active Jul 14, 2022
Display product description on WooCommerce shop/category pages
View functions.php
<?php
/**
* Add the product's short description (excerpt) to the WooCommerce shop/category pages. The description displays after the product's name, but before the product's price.
*
* Ref: https://gist.github.com/om4james/9883140
*
* Put this snippet into a child theme's functions.php file
*/
function woocommerce_after_shop_loop_item_title_short_description() {
global $product;