From: Ian Weller Date: Thu, 18 Feb 2016 20:40:43 +0000 (-0500) Subject: more WooCommerce setup X-Git-Tag: v1.0.0^2~85 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6bf5f1461945c17f220fbd72f441d3aa1d82983b;p=WP-Themes%2Fjollylama.git more WooCommerce setup --- diff --git a/assets/shopping-cart.png b/assets/shopping-cart.png new file mode 100644 index 0000000..d81bdce Binary files /dev/null and b/assets/shopping-cart.png differ diff --git a/front-page.php b/front-page.php index 6347637..97753ce 100644 --- a/front-page.php +++ b/front-page.php @@ -1,7 +1,6 @@
-
diff --git a/functions.php b/functions.php index 17b29f1..4f63d4d 100644 --- a/functions.php +++ b/functions.php @@ -97,9 +97,16 @@ function glm_get_header() { function get_product_category_by_id($cat_id) { - $category = get_term_by('id', $cat_id, 'product_cat', 'OBJECT'); - return $category; +$category = get_term_by('id', $cat_id, 'product_cat', 'OBJECT'); +return $category; } +// Declare WooCommerce support +add_action( 'after_setup_theme', 'woocommerce_support' ); +function woocommerce_support() { +add_theme_support( 'woocommerce' ); +} +// WooCommerce number of products shown +add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 ); // // The code below is useful when you want the image to resize to // if (has_post_thumbnail()) { diff --git a/header.php b/header.php index d9c2e2c..f9917ea 100644 --- a/header.php +++ b/header.php @@ -19,7 +19,7 @@
diff --git a/single.php b/single.php index 8f0d10d..bef202d 100644 --- a/single.php +++ b/single.php @@ -11,73 +11,28 @@

+ + Posted on
- - -
- -
- -
- - - -
- -
- $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; - } - } - $post_tags = wp_get_post_tags( get_the_ID() ); - $tags = array(); - if (has_tag( )) { - echo ' and tagged '; - foreach($post_tags as $t){ - $tag = get_tag( $t ); - $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; - } - } - echo ' on '; - echo ' ' . the_time('F jS, Y') . ''; - ?> -
-
-
-
-
+ + + + - - - - - - -

- + - + diff --git a/woocommerce/content-product_cat.php b/woocommerce/content-product_cat.php index f044d45..827768d 100644 --- a/woocommerce/content-product_cat.php +++ b/woocommerce/content-product_cat.php @@ -6,7 +6,7 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 2.4.0 + * @version 2.5.2 */ if ( ! defined( 'ABSPATH' ) ) {