esc_html__( 'Primary menu', 'billiard' ), 'footer-menu' => esc_html__( 'Footer menu', 'billiard' ) ) ); add_theme_support( 'post-formats', array('video', 'gallery', 'audio', 'quote', 'image', 'link')); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'title-tag' ); // Add woocommerce support add_theme_support( 'woocommerce' ); } add_action( 'after_setup_theme', 'billiard_after_setup' ); /** * Custom billiard menu. */ function billiard_custom_menu() { if ( has_nav_menu( 'top-menu' ) ) { wp_nav_menu( array( 'container' => '', 'items_wrap' => '', 'theme_location' => 'top-menu', 'depth' => 3 ) ); } else { echo '
' . esc_html__( 'Please register Top Navigation from', 'billiard' ) . ' ' . esc_html__( 'Appearance > Menus', 'billiard' ) . '
'; } } // Change a currency symbol in WooCommerce add_filter('woocommerce_currency_symbol', 'billiard_change_existing_currency_symbol', 10, 2); function billiard_change_existing_currency_symbol( $currency_symbol, $currency ) { switch( $currency ) { case 'AUD': $currency_symbol = 'AUD$'; break; } return $currency_symbol; } // if ( class_exists( 'WooCommerce' ) ) { require_once BILLIARD_T_PATH . '/woocommerce-support.php'; } add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' );