From: Laury GvR Date: Thu, 21 Apr 2016 19:36:10 +0000 (-0400) Subject: Product title styling X-Git-Tag: v1.0.0^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=56eb801d4ccbd0553c670837dbdaf7ccdd35f007;p=WP-Themes%2Fjollylama.git Product title styling --- diff --git a/css/app.css b/css/app.css index 32601c6..a28a818 100644 --- a/css/app.css +++ b/css/app.css @@ -7016,6 +7016,14 @@ main.woocommerce, div.woocommerce { display: none; } main.woocommerce #content .product.type-product .price del, div.woocommerce #content .product.type-product .price del { color: #0f789f; } + main.woocommerce #content .product.type-product .price.price-single, div.woocommerce #content .product.type-product .price.price-single { + clear: both; + float: none; + text-align: left; + padding-bottom: 5px; } + main.woocommerce #content .product.type-product .price.price-single span, div.woocommerce #content .product.type-product .price.price-single span { + color: black; + font-size: 22px; } main.woocommerce #content .product.type-product .stock, div.woocommerce #content .product.type-product .stock { color: black; float: right; @@ -7151,7 +7159,19 @@ main.woocommerce, div.woocommerce { margin-bottom: 25px; } } main.woocommerce #content ul.products li.product.type-product h3, div.woocommerce #content ul.products li.product.type-product h3 { font-size: 16px; - text-align: left; } + text-align: left; + padding: 10px 0 0; } + main.woocommerce #content ul.products li.product.type-product .product-list-link, div.woocommerce #content ul.products li.product.type-product .product-list-link { + display: block; + height: 220px; + overflow: hidden; + border: 1px solid lightgrey; + border-radius: 2px; } + main.woocommerce #content ul.products li.product.type-product .product-list-link .wp-post-image, div.woocommerce #content ul.products li.product.type-product .product-list-link .wp-post-image { + min-height: 220px; + width: 100%; } + main.woocommerce #content ul.products li.product.type-product .product-list-link-wrapper, div.woocommerce #content ul.products li.product.type-product .product-list-link-wrapper { + padding-right: 15px; } main.woocommerce #content ul.products li.product.type-product .wp-post-image, div.woocommerce #content ul.products li.product.type-product .wp-post-image { margin-bottom: 0; border: none; diff --git a/functions.php b/functions.php index d28b9bc..429a06d 100644 --- a/functions.php +++ b/functions.php @@ -163,6 +163,11 @@ add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_single_add remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 10 ); add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_link_close', 30 ); +remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_single_price', 40 ); +remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_single_price', 40 ); +add_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_single_price', 10 ); + + //remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); //add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 ); diff --git a/scss/plugins/_woocommerce.scss b/scss/plugins/_woocommerce.scss index 06ea37d..d4462af 100644 --- a/scss/plugins/_woocommerce.scss +++ b/scss/plugins/_woocommerce.scss @@ -679,6 +679,16 @@ div.woocommerce { color: $blue; } } + .price.price-single { + clear: both; + float: none; + text-align: left; + padding-bottom: 5px; + span { + color: black; + font-size: 22px; + } + } .stock { color: black; float: right; @@ -868,6 +878,21 @@ div.woocommerce { h3 { font-size: 16px; text-align: left; + padding: 10px 0 0; + } + .product-list-link { + display: block; + height:220px; + overflow: hidden; + border: 1px solid lightgrey; + border-radius: 2px; + .wp-post-image { + min-height: 220px; + width: 100%; + } + } + .product-list-link-wrapper { + padding-right: 15px; } .wp-post-image { margin-bottom: 0; diff --git a/woocommerce/content-product.php b/woocommerce/content-product.php index 0fd8d70..7c18d65 100644 --- a/woocommerce/content-product.php +++ b/woocommerce/content-product.php @@ -51,28 +51,19 @@ if ( 0 === $woocommerce_loop['loop'] % $woocommerce_loop['columns'] ) {
  • >
    -
    - + -
    +
    - has_child()) { ?>
    - -
    -
    -

    - post_excerpt ?> -

    More Info... -
    -
    diff --git a/woocommerce/loop/price.php b/woocommerce/loop/price.php new file mode 100644 index 0000000..dae22a4 --- /dev/null +++ b/woocommerce/loop/price.php @@ -0,0 +1,27 @@ + + +get_price_html() ) : ?> + + diff --git a/woocommerce/single-product/price.php b/woocommerce/single-product/price.php index e7e2bd1..c206593 100644 --- a/woocommerce/single-product/price.php +++ b/woocommerce/single-product/price.php @@ -24,7 +24,7 @@ global $product; ?>
    - is_type( 'simple' ) ){ ?>

    get_price_html(); ?>

    + is_type( 'simple' ) ){ ?>

    get_price_html(); ?>