From 45d65797764d7003c93b313fbb45cb82a57147e3 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Wed, 8 Nov 2017 13:55:29 -0800 Subject: [PATCH] Unsupported theme product frontend --- ...ss-wc-unsupported-theme-product-single.php | 136 ++++++++++++++++++ includes/wc-template-functions.php | 14 ++ 2 files changed, 150 insertions(+) create mode 100644 includes/theme-support/class-wc-unsupported-theme-product-single.php diff --git a/includes/theme-support/class-wc-unsupported-theme-product-single.php b/includes/theme-support/class-wc-unsupported-theme-product-single.php new file mode 100644 index 00000000000..dc0b559be02 --- /dev/null +++ b/includes/theme-support/class-wc-unsupported-theme-product-single.php @@ -0,0 +1,136 @@ + + .wc-content-top { + margin-bottom: 2em; + } + + .wc-content-top input[name="quantity"] { + margin-right: 1em; + } + + .wc-content-top .price { + font-size: 1.5em; + color: #77a464; + } + + .wc-content-top .reset_variations { + margin-left: 1em; + } + + .wc-content-top .woocommerce-variation-price { + margin-bottom: 1em; + } + + /* Normalize the button and input to the same height and font. */ + .wc-content-top input[name="quantity"], + .wc-content-top .single_add_to_cart_button { + float: left; + font-size: 1em; + height: 2em; + line-height: 2em; + padding-top: 0; + padding-bottom: 0; + } + + .wc-content-bottom .sku_wrapper { + display: block; + margin-bottom: 1em; + } + + .wc-content-bottom li.product .button { + font-size: .75em; + } + +
+ +
+ get_attributes(), 'wc_attributes_array_filter_visible' ) || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ); + + ob_start(); + ?> +
+ +
+