Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Kadence WooCommerce functions

Home / Forums / Virtue Theme / Kadence WooCommerce functions

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
November 14, 2016 at 12:39 pm

Hi Ben

Just catching up with updating some child template files in a wc site.

Somewhere between 3.7.3 and 3.7.7 you ‘hid’ a short structural sequence that used to be in woocommerce/archive-product (and probably elsewhere). I’ve just found the sequence in lib/custom-woocommerce.php

add_action( 'woocommerce_before_main_content', 'kt_woo_main_wrap_content_open', 10 );
function kt_woo_main_wrap_content_open() {
echo '<div id="content" class="container"><div class="row"><div class="main '.kadence_main_class().'" role="main">';
}

Pre-3.7.3 I was just adding an extra class to the <div class=”row”> and saving it as a child template. What is the cleanest way to do this now? I get that it is a huge advantage to make it upgrade proof by placing a couple of lines in the child functions.php file so I want to do it right (especially as it is a live – if quiet – site).

Best wishes, Colin

  • The forum ‘Virtue Theme’ is closed to new topics and replies.