width: 40%; }
main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom {
display: block;
- height: 180px;
+ height: 220px;
overflow: hidden;
border: 1px solid lightgrey;
border-radius: 2px; }
main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image {
- min-height: 180px;
+ min-height: 220px;
width: 100%; }
@media only screen and (max-width: 40em) {
main.woocommerce .main.woo-single-product #content .type-product .images, div.woocommerce .main.woo-single-product #content .type-product .images {
width: 100%; } }
main.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id, div.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id {
- height: 180px; }
+ height: 220px; }
main.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary, div.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary {
width: 60%; }
@media only screen and (max-width: 40em) {
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_single_product_summary', 'woocommerce_template_single_price', 10 );
-add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 );
+//remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
+//add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 );
// Change number of thumbnails per row to 4
add_filter ( 'woocommerce_product_thumbnails_columns', 'four_thumb_cols' );
<div class="sidebar shop-sidebar">
+<!-- <h1>Test</h1>-->
+ <?php
+//
+// $taxonomy = 'product_cat';
+// $orderby = 'name';
+// $show_count = 0; // 1 for yes, 0 for no
+// $pad_counts = 0; // 1 for yes, 0 for no
+// $hierarchical = 1; // 1 for yes, 0 for no
+// $title = '';
+// $empty = 0;
+//
+// $args = array(
+// 'taxonomy' => $taxonomy,
+// 'orderby' => $orderby,
+// 'show_count' => $show_count,
+// 'pad_counts' => $pad_counts,
+// 'hierarchical' => $hierarchical,
+// 'title_li' => $title,
+// 'hide_empty' => $empty
+// );
+// $all_categories = get_categories( $args );
+// foreach ($all_categories as $cat) {
+// if($cat->category_parent == 0) {
+// $category_id = $cat->term_id;
+// echo '<br /><a href="'. get_term_link($cat->slug, 'product_cat') .'">'. $cat->name .'</a>';
+//
+// $args2 = array(
+// 'taxonomy' => $taxonomy,
+// 'child_of' => 0,
+// 'parent' => $category_id,
+// 'orderby' => $orderby,
+// 'show_count' => $show_count,
+// 'pad_counts' => $pad_counts,
+// 'hierarchical' => $hierarchical,
+// 'title_li' => $title,
+// 'hide_empty' => $empty
+// );
+// $sub_cats = get_categories( $args2 );
+// if($sub_cats) {
+// foreach($sub_cats as $sub_category) {
+// echo $sub_category->name ;
+// }
+// }
+// }
+// }
+ ?>
+
<a href="<?php echo esc_url( get_permalink( woocommerce_get_page_id( 'shop' ) ) ); ?>">
<h1>Products</h1>
</a>
.images {
.woocommerce-main-image.zoom {
display: block;
- height:180px;
+ height:220px;
overflow: hidden;
border: 1px solid lightgrey;
border-radius: 2px;
}
.woocommerce-main-image.zoom .wp-post-image {
- min-height: 180px;
+ min-height: 220px;
width: 100%;
}
width: 40%;
width: 100%;
}
#wpb_wiz_img_id {
- height: 180px;
+ height: 220px;
}
}
<?php $variations_ob = ob_get_clean(); $variations_arr[wc_attribute_label($attribute_name)] = $variations_ob; endforeach;
foreach ($variations_arr as $name => $ob) {
- $article = "a ";
- if (ctype_alpha($name) && preg_match('/^[aeiou]/i', $name)) {
- $article = "an ";
- }
- echo str_ireplace('choose an option', 'Choose '.$article.$name, $ob );
+// $article = "a ";
+// if (ctype_alpha($name) && preg_match('/^[aeiou]/i', $name)) {
+// $article = "an ";
+// }
+ echo str_ireplace('choose an option', 'Select '.$name, $ob );
} ?>
</tbody>
?>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
- <?php if( $product->is_type( 'simple' ) ){ ?><p class="price"><?php echo $product->get_price_html(); ?></p><?php } ?>
+ <?php // if( $product->is_type( 'simple' ) ){ ?><p class="price"><?php echo $product->get_price_html(); ?></p><?php // } ?>
<meta itemprop="price" content="<?php echo esc_attr( $product->get_price() ); ?>" />
<meta itemprop="priceCurrency" content="<?php echo esc_attr( get_woocommerce_currency() ); ?>" />