Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing template loader for WooCommerce taxonomies

  • Loading branch information...
commit f25898611688c943f20d60470fb922427e30f7fd 1 parent ad54593
@hlashbrooke hlashbrooke authored
Showing with 0 additions and 10 deletions.
  1. +0 −10 classes/class-woothemes-sensei.php
View
10 classes/class-woothemes-sensei.php
@@ -416,16 +416,6 @@ public function template_loader ( $template ) {
$find[] = $this->template_url . $file;
} // End If Statement
- } elseif ( is_tax( 'product_cat' ) || is_tax( 'product_tag' ) ) {
-
- $term = get_queried_object();
-
- $file = 'taxonomy-' . $term->taxonomy . '.php';
- $find[] = 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
- $find[] = $this->template_url . 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
- $find[] = $file;
- $find[] = $this->template_url . $file;
-
} elseif ( is_post_type_archive( 'course' ) || is_page( $this->get_page_id( 'courses' ) ) ) {
$file = 'archive-course.php';
Please sign in to comment.
Something went wrong with that request. Please try again.