/** Start the engine */ require_once( get_template_directory() . '/lib/init.php' ); /** Create additional color style options */ add_theme_support( 'genesis-style-selector', array( 'fabric-blue' => 'Blue', 'fabric-pink' => 'Pink' ) ); /** Child theme (do not remove) */ define( 'CHILD_THEME_NAME', 'Fabric Theme' ); define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/fabric' ); $content_width = apply_filters( 'content_width', 620, 0, 920 ); /** Unregister 3-column site layouts */ genesis_unregister_layout( 'content-sidebar-sidebar' ); genesis_unregister_layout( 'sidebar-sidebar-content' ); genesis_unregister_layout( 'sidebar-content-sidebar' ); /** Add new featured image sizes */ add_image_size( 'featured', 650, 280, TRUE ); add_image_size( 'sidebar', 70, 70, TRUE ); /** Add suport for custom background */ add_theme_support( 'custom-background' ); /** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) ); /** Reposition the primary navigation */ remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_before_header', 'genesis_do_nav' ); /** Add top section to inner */ add_action( 'genesis_after_header', 'fabric_inner_top', 20 ); function fabric_inner_top() { echo '
'; } /** Reposition breadcrumb */ remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_breadcrumbs' ); /** Add custom field above post title */ add_action( 'genesis_before_post_title', 'fabric_post_image', 8 ); function fabric_post_image() { if ( is_page() ) return; if ( $image = genesis_get_image( 'format=url&size=featured' ) ) { printf( '%s', get_permalink(), $image, the_title_attribute( 'echo=0' ) ); } } /** Customize the post info function */ add_filter( 'genesis_post_info', 'fabric_post_info_filter' ); function fabric_post_info_filter($post_info) { return '[post_date] by [post_author_posts_link] · [post_comments] [post_edit]'; } /** Add support for 3-column footer widgets */ add_theme_support( 'genesis-footer-widgets', 3 ); /** Add top section to footer widgets */ add_action( 'genesis_before_footer', 'fabric_footer_widgets_top', 1 ); function fabric_footer_widgets_top() { if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) ) { echo ''; } } /** Customizes go to top text */ add_filter( 'genesis_footer_backtotop_text', 'footer_backtotop_filter' ); function footer_backtotop_filter($backtotop) { return '[footer_backtotop text="Top"]'; } add_theme_support( 'genesis-connect-woocommerce' ); // Paste this in to your theme's functions file // Redefine sub category display to output empty categories function woocommerce_product_subcategories( $args = array() ) { global $woocommerce, $wp_query, $_chosen_attributes; $defaults = array( 'before' => '', 'after' => '', 'force_display' => false ); $args = wp_parse_args( $args, $defaults ); extract( $args ); // Main query only if ( ! is_main_query() && ! $force_display ) return; // Don't show when filtering if ( sizeof( $_chosen_attributes ) > 0 || ( isset( $_GET['max_price'] ) && isset( $_GET['min_price'] ) ) ) return; // Don't show when searching or when on page > 1 and ensure we're on a product archive if ( is_search() || is_paged() || ( ! is_product_category() && ! is_shop() ) ) return; // Check cateogries are enabled if ( is_product_category() && get_option( 'woocommerce_show_subcategories' ) == 'no' ) return; if ( is_shop() && get_option( 'woocommerce_shop_show_subcategories' ) == 'no' ) return; // Find the category + category parent, if applicable if ( $product_cat_slug = get_query_var( 'product_cat' ) ) { $product_cat = get_term_by( 'slug', $product_cat_slug, 'product_cat' ); $product_category_parent = $product_cat->term_id; } else { $product_category_parent = 0; } // NOTE: using child_of instead of parent - this is not ideal but due to a WP bug ( http://core.trac.wordpress.org/ticket/15626 ) pad_counts won't work $args = array( 'child_of' => $product_category_parent, 'menu_order' => 'ASC', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'product_cat', 'pad_counts' => 1 ); $product_categories = get_categories( $args ); $product_category_found = false; if ( $product_categories ) { foreach ( $product_categories as $category ) { if ( $category->parent != $product_category_parent ) continue; if ( ! $product_category_found ) { // We found a category $product_category_found = true; echo $before; } woocommerce_get_template( 'content-product_cat.php', array( 'category' => $category ) ); } } // If we are hiding products disable the loop and pagination if ( $product_category_found == true && get_option( 'woocommerce_hide_products_when_showing_subcategories' ) == 'yes' ) { $wp_query->post_count = 0; $wp_query->max_num_pages = 0; } if ( $product_category_found ) { echo $after; return true; } } function woocommerce_show_empty_categories($cat_args){ $cat_args['hide_empty']=0; return $cat_args; } add_filter('woocommerce_product_subcategories_args', 'woocommerce_show_empty_categories'); add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); function custom_woocommerce_get_catalog_ordering_args( $args ) { $orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); if ( 'alphabetical' == $orderby_value ) { $args['orderby'] = 'title'; $args['order'] = 'ASC'; } return $args; } add_filter( 'woocommerce_default_catalog_orderby_options', 'custom_woocommerce_catalog_orderby' ); add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby' ); function custom_woocommerce_catalog_orderby( $sortby ) { $sortby['alphabetical'] = __( 'Alphabetical' ); return $sortby; } Page not found
< class="entry-title">Not found, error 404

The page you are looking for no longer exists. Perhaps you can return back to the site's homepage and see if you can find what you are looking for. Or, you can try finding it with the information below.

Pages:

Categories:

Authors:

Monthly:

Recent Posts: