Home › Forums › Themes Support › Claue › Woocommerce Hooks Ordering
- This topic has 7 replies, 2 voices, and was last updated 2 years, 9 months ago by jascom.
-
AuthorPosts
-
-
January 24, 2022 at 5:33 pm #42730jascomSupport Expired
Is it possible to change the order in which the Woocommerce Product Details display on the Claue Theme. At the moment it is as per below and I want to move the Size Attribute to the top of the page above the title.
Title
Price
Description
Size (attribute)
-
January 24, 2022 at 6:26 pm #42732HarrySupport Expired
Hi Jascom,
Thank you for choose our theme and contact us.
Please add below code to claue-child > functions.php
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_excerpt', 20 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_title', 5 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_rating', 10 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_price', 10 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_excerpt', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
January 24, 2022 at 8:42 pm #42733jascomSupport ExpiredThis reply has been marked as private.
-
January 24, 2022 at 10:12 pm #42738jascomSupport ExpiredThis reply has been marked as private.
-
January 24, 2022 at 10:18 pm #42739HarrySupport Expired
Hi,
Please change code to
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_excerpt', 20 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_title', 5 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_rating', 10 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_price', 20 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_excerpt', 15 );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
January 31, 2022 at 9:02 pm #42789jascomSupport ExpiredThis reply has been marked as private.
-
January 31, 2022 at 11:38 pm #42794HarrySupport Expired
Hi,
Please change code to
add_action( 'woocommerce_single_product_summary', 'custom_single_product_styles', 2 ); function custom_single_product_styles() { global $product; // Only for variable products if ( ! $product->is_type('variable') ) return; 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_excerpt', 20 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_title', 5 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_rating', 10 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_price', 20 ); add_action( 'woocommerce_single_variation','woocommerce_template_single_excerpt', 15 ); }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 1, 2022 at 12:00 am #42795jascomSupport ExpiredThis reply has been marked as private.
-
-
AuthorPosts
You must be logged in to reply to this topic.