public function before_single_product_summary() { echo '<header class="entry-header">'; woocommerce_template_single_title(); echo '</header>'; }
/** * Output the WooCommerce page titles to custom location. */ function ultra_display_woocommerce_page_title() { if (is_singular('product')) { woocommerce_template_single_title(); } else { echo '<h1 class="entry-title">'; woocommerce_page_title(); echo '</h1>'; } }
<div class="summary"> <?php /** * woocommerce_single_product_summary hook * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 */ if (dh_get_theme_option('woo-product-layout', 'full-width') === 'full-width') { woocommerce_template_single_title(); woocommerce_template_single_rating(); woocommerce_template_single_excerpt(); } else { do_action('woocommerce_single_product_summary'); } ?> </div><!-- .summary --> </div> <?php if (dh_get_theme_option('woo-product-layout', 'full-width') === 'full-width') { ?> <div class="col-md-3 col-sm-6 action-summary"> <div class="summary"> <?php
function thb_single_product_mobile_header() { echo "<div class='thb_product_mobile_header'>"; woocommerce_template_single_title(); woocommerce_template_loop_rating(); woocommerce_template_single_price(); echo "</div>"; }
function yit_load_product_quick_view_ajax() { if (!isset($_REQUEST['item_id'])) { die; } $product_id = intval($_REQUEST['item_id']); // set the main wp query for the product wp('p=' . $product_id . '&post_type=product'); // remove parts from single product page remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title', 5); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40); remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50); remove_all_actions('woocommerce_after_single_product_summary'); remove_all_actions('woocommerce_after_single_product'); // change template for variable products if (isset($GLOBALS['yith_wccl'])) { $GLOBALS['yith_wccl']->obj = new YITH_WCCL_Frontend(YITH_WCCL_VERSION); $GLOBALS['yith_wccl']->obj->override(); } //wp_head(); while (have_posts()) { the_post(); ?> <?php woocommerce_template_single_title(); ?> <?php woocommerce_template_single_rating(); ?> <?php woocommerce_template_single_price(); ?> <div class="single-product woocommerce"> <?php wc_get_template_part('content', 'single-product'); ?> </div> <?php } // end of the loop. //wp_footer(); die; }