set_permalink_structure('/%postname%/'); } add_action('init', 'set_permalink'); /** * Optional: set 'ot_show_pages' filter to false. * This will hide the settings & documentation pages. */ add_filter( 'ot_show_pages', '__return_false' ); /** * Optional: set 'ot_show_new_layout' filter to false. * This will hide the "New Layout" section on the Theme Options page. */ add_filter( 'ot_show_new_layout', '__return_false' ); /** * Required: set 'ot_theme_mode' filter to true. */ add_filter( 'ot_theme_mode', '__return_true' ); /** * Required: include OptionTree. */ load_template( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' ); /** * Theme Options */ load_template( trailingslashit( get_template_directory() ) . 'includes/theme-options.php' ); add_theme_support( 'automatic-feed-links' ); add_theme_support('menus'); add_action( 'init', 'register_my_menus' ); function register_my_menus() { register_nav_menus( array( 'home-menu' => __( 'Home Menu' ), ) ); } add_theme_support('post-thumbnails'); add_image_size( 'catimage',255, 175, true ); add_image_size( 'galleryimage',190, 120, true ); add_image_size( 'slides',980, 380, true ); add_filter('excerpt_length', 'my_excerpt_length'); function my_excerpt_length($length) { return 20; // Or whatever you want the length to be. } register_sidebar(array( 'name' => __( 'Right Hand Sidebar' ), 'id' => 'rightbar', 'description' => __( 'Widgets in this area will be shown on the right-hand side.' ), )); function the_breadcrumb() { echo ''; } if ( ! isset( $content_width ) ) $content_width = 980; ?>