function description_in_shop_loop_item() {
global $product;
$limit = 35; //number of characters
$description = $product->get_description();
if (strlen($description) > $limit) {
$excerpt = substr($description, 0, $limit) . '...';
} else {
$excerpt = $description;
}
echo '<p class="description">'.$excerpt.'</p>';
}
]]>
You want to add it right after the
<?php
Or at the very bottom. It depends. Some themes have nothing in their functions folders nowadays.
]]>
]]>
]]>
Open in a private browser if you don’t know how to clear cache
]]>Look at the Drop Down when in Theme Editor to the right. Make sure Storefront Child is selected. Make sure you also have the latest Storefront installed.
Powerpack maybe blocking it but I doubt it. Tested on mine and it works.
]]>