I wanted to change the display of products on the Woocommerce shop page – they advised me to make the following change to your theme’s functions.php file
// add short description to shop page
add_action( ‘woocommerce_after_shop_loop_item_title’, ‘my_add_short_description’, 9 );
function my_add_short_description() {
echo ‘<span class=”title-description”>’ . the_excerpt() . ‘</span><br />’;
}
I’ve made this change and it’s working – see link below – but I wanted to see if this change would be deleted by a future update to the Enfold theme?
Hey databuzz!
Please use a child theme to avoid losing any customisations: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/. It will be overwritten on future updates if you keep the code in the parents function.php.
Cheers!
Rikard
Thanks,
If I do this and activate the child theme I’ll loose all my theme settings.
Is there a way to do this without loosing all my existing settings?
thanks