Last active
November 12, 2017 15:35
-
-
Save aderaaij/bfd6a65d2d380fb5f367 to your computer and use it in GitHub Desktop.
Functions setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment