This topic has 8 replies, 3 voices, and was last updated 4 years, 5 months ago ago by Olga Barlow
I am want to Show Product SKU below on price.
How to do this?
Hello,
There is no such possibility by default.
Try to add the next code in Theme Options > Theme Custom CSS:
.single-product .product-information-inner .fixed-content {
display: flex;
flex-direction: column;
}
.single-product .product-information-inner h1.product_title.entry-title { order: 1;}
.single-product .product-information-inner .price { order: 2; }
.single-product .product-information-inner .product_meta {order: 3;}
.single-product .product-information-inner .woocommerce-product-details__short-description { order: 4;}
.single-product .product-information-inner .cart { order: 5; }
.single-product .product-information-inner .product-share { order: 6; }
Regards
I am want to Show Product SKU below on the price
Hi,
Try the next custom CSS code:
.price + .product_meta > *:not(.sku_wrapper) {
display: none;
}
.product_meta ~ .product_meta .sku_wrapper {
display: none;
}
child-theme/functions file
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 15);
Regards
No Chaged
Hello,
Delete this previous custom CSS code – http://prntscr.com/t628ca , apply this solution http://prntscr.com/t628uk only.
Also, do not edit .php files via the Dashboard https://prnt.sc/t5tm83 , changes in files should be done via FTP, it is the safest way.
Regards
Thanks. Now I want to show Product SKU in the product categories page.
Please send me the solution or custom css.
Hello,
Sorry but there is no such option to show the product SKU on the shop page or product category. It’s possible by additional PHP customization. You can use WooCommerce hooks if you have PHP skills https://www.businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/ to implement this or submit customization request to our customization team here because our default support does not cover additional PHP customization, sorry.
Regards
You must be logged in to reply to this topic.Log in/Sign up