Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #456461

    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?

    #456572

    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

    #456966

    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

    #457381

    Hi!

    You can activate Enfold child theme and then go to Enfold theme options and import parent theme options

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.