__('Primary Menu', 'abaya'), 'nav-menu' => __('Navigation Menu', 'abaya'), 'footer-menu' => __('Footer Menu', 'abaya') ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); } endif; // abaya_setup add_action('after_setup_theme', 'abaya_setup'); if ( ! isset( $content_width ) ) { $content_width = 770; } function wc_custom_shop_archive_title() { if (is_product_tag()) { echo _e('Shop','abaya'); }else { the_title(); } } add_filter( 'woocommerce_breadcrumb_defaults', 'ridolfi_woocommerce_breadcrumbs' ); function ridolfi_woocommerce_breadcrumbs() { return array( 'delimiter' => '/', 'wrap_before' => '', 'before' => '
  • ', 'after' => '
  • ', 'home' => _x( 'Home', 'breadcrumb', 'abaya'), ); } add_filter('comments_open', 'abaya_comments_open', 10, 2 ); function abaya_comments_open( $open, $post_id ) { $post = get_post( $post_id ); if (get_post_meta($post->ID, 'Allow Comments', true)) {$open = true;} return $open; } if(!function_exists('abaya_comment_nav')) : function abaya_comment_nav() { // Are there comments to navigate through? if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>