';
$prev_post = get_adjacent_post(true, null, true, 'product_cat');
if ( !empty( $prev_post ) ) :
echo '
';
endif;
$next_post = get_adjacent_post(true, null, false, 'product_cat');
if ( !empty( $next_post ) ) :
echo '
';
endif;
echo '
';
echo '';
}
}
add_action('woocommerce_after_single_product_summary','ascend_woo_product_navigation', 12);
function ascend_woo_product_title_cat() {
global $ascend, $post;
if(isset($ascend['product_cat_above_title']) && $ascend['product_cat_above_title'] == '1') {
echo '';
if ( $terms = wp_get_post_terms( $post->ID, 'product_cat', array( 'orderby' => 'parent', 'order' => 'DESC' ) ) ) {
$main_term = $terms[0];
echo $main_term->name;
}
echo '
';
}
}
add_action('woocommerce_single_product_summary','ascend_woo_product_title_cat', 4);
if ( isset( $ascend['product_post_title_inpost'] ) && $ascend['product_post_title_inpost'] == 0 ) {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
add_action( 'woocommerce_single_product_summary', 'kt_hidden_woocommerce_template_single_title', 5 );
function kt_hidden_woocommerce_template_single_title() {
echo '';
}
add_action('woocommerce_before_single_product_summary','ascend_woocommerce_image_wrap_end', 50);
function ascend_woocommerce_image_wrap_end() {
echo '
';
echo '';
}
add_action('woocommerce_single_product_summary','ascend_woocommerce_summary_wrap_end', 100);
function ascend_woocommerce_summary_wrap_end() {
echo '
';
echo '';
}
}
add_action( 'after_setup_theme', 'ascend_single_woocommerce_support' );