| @@ -69,15 +69,8 @@ | ||
| 69 | 69 | * @param string $template The original template. |
| 70 | 70 | * @return string The archive template. |
| 71 | 71 | */ |
| 72 | 72 | public function archive_template( $template ) { |
| 73 | - if( is_tax('doc_category') ) { | |
| 74 | - // If 'archive-doc_category.php' exists in the theme, return it | |
| 75 | - $theme_template = locate_template( 'archive-doc_category.php' ); | |
| 76 | - if ( $theme_template ) { | |
| 77 | - return $theme_template; | |
| 78 | - } | |
| 79 | - } | |
| 80 | 73 | |
| 81 | 74 | if ( is_tax( 'glossaries' ) ) { |
| 82 | 75 | // Use a custom taxonomy template for your custom taxonomy |
| 83 | 76 | |
| @@ -92,9 +85,9 @@ | ||
| 92 | 85 | |
| 93 | 86 | return apply_filters( 'betterdocs_archives_template', $template, $layout, $_default_template, $this->views ); |
| 94 | 87 | } |
| 95 | 88 | |
| 96 | - if ( get_post_type() !== 'docs' && ! is_tax('doc_category') && ! is_tax( 'doc_tag' ) && ! is_tax( 'knowledge_base' ) ) { | |
| 89 | + if ( get_post_type() !== 'docs' ) { | |
| 97 | 90 | return $template; |
| 98 | 91 | } |
| 99 | 92 | |
| 100 | 93 | if ( is_embed() ) { |
| @@ -107,12 +100,12 @@ | ||
| 107 | 100 | |
| 108 | 101 | $_default_template = 'templates/archives/layout-1'; |
| 109 | 102 | $layout = $this->database->get_theme_mod( 'betterdocs_docs_layout_select', 'layout-7' ); |
| 110 | 103 | $_template = 'templates/archives/' . $layout; |
| 111 | - | |
| 104 | + | |
| 112 | 105 | if ( is_tax( 'doc_category' ) ) { |
| 113 | 106 | $category_layout = $this->database->get_theme_mod( 'betterdocs_archive_layout_select', 'layout-7' ); |
| 114 | - if ( $category_layout == 'layout-7' || $category_layout == 'layout-8' ) { | |
| 107 | + if ( $category_layout == 'layout-7' ) { | |
| 115 | 108 | $_template = 'templates/archives/categories/' . $category_layout; |
| 116 | 109 | } else { |
| 117 | 110 | $_template = 'templates/taxonomy-doc_category'; |
| 118 | 111 | } |