Spacing
This commit is contained in:
parent
60a4da9660
commit
1ff00adcf6
|
@ -265,14 +265,14 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
|||
protected function get_page_base_url( $taxonomy ) {
|
||||
if ( defined( 'SHOP_IS_ON_FRONT' ) ) {
|
||||
$link = home_url();
|
||||
} elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id('shop') ) ) {
|
||||
} elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) ) {
|
||||
$link = get_post_type_archive_link( 'product' );
|
||||
} elseif( is_product_category() ) {
|
||||
$link = get_term_link( get_query_var('product_cat'), 'product_cat' );
|
||||
} elseif( is_product_tag() ) {
|
||||
$link = get_term_link( get_query_var('product_tag'), 'product_tag' );
|
||||
} elseif ( is_product_category() ) {
|
||||
$link = get_term_link( get_query_var( 'product_cat' ), 'product_cat' );
|
||||
} elseif ( is_product_tag() ) {
|
||||
$link = get_term_link( get_query_var( 'product_tag' ), 'product_tag' );
|
||||
} else {
|
||||
$link = get_term_link( get_query_var('term'), get_query_var('taxonomy') );
|
||||
$link = get_term_link( get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
|
||||
}
|
||||
|
||||
// Min/Max
|
||||
|
|
Loading…
Reference in New Issue