Skip to content

Instantly share code, notes, and snippets.

@akther80
Last active March 20, 2019 19:28
Show Gist options
  • Save akther80/601410eed801f911b1341be70948d8d4 to your computer and use it in GitHub Desktop.
Save akther80/601410eed801f911b1341be70948d8d4 to your computer and use it in GitHub Desktop.
Electro v2 - Add SKU in single product summary
add_action( 'init', 'ec_child_add_sku_in_single_product_summary', 10 );
function ec_child_add_sku_in_single_product_summary() {
remove_action( 'woocommerce_single_product_summary', 'electro_template_single_divider', 11 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 11 );
add_action( 'woocommerce_single_product_summary', 'electro_template_single_divider', 12);
}
.single-product-wrapper .summary.entry-summary .product_meta .posted_in {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment