Functions setup
<?php
if ( ! isset( $content_width ) )
$content_width = 674; /* pixels */
if ( ! function_exists( 'oms_setup' ) ):
function oms_setup() {
load_theme_textdomain( 'oms', get_template_directory() . '/languages' );
$locale = get_locale();
$locale_file = get_template_directory() . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'oms' ),
) );
// add woocommerce theme support
add_theme_support( 'woocommerce' );
}
endif; // oms_setup