'Theme General Settings', 'menu_title' => 'Theme Settings', 'menu_slug' => 'theme-general-settings', 'capability' => 'edit_posts', 'redirect' => false )); } //add excerpt to page function wpcodex_add_excerpt_support_for_pages() { add_post_type_support( 'page', 'excerpt' ); } add_action( 'init', 'wpcodex_add_excerpt_support_for_pages' ); //Register Navigation function register_primary_nav_menu() { register_nav_menu('landing-menu',__( 'Product Tour Navigation Menu' )); register_nav_menu('main-footer-menu',__( 'Main Footer Navigation Menu' )); register_nav_menu('lower-footer-menu',__( 'Lower Footer Navigation Menu' )); } add_action( 'init', 'register_primary_nav_menu'); // ADD THUMBNAILS TO POSTS add_theme_support( 'post-thumbnails' ); // ENABLE HR IN WSYWIG function enable_more_buttons($buttons) { $buttons[] = 'hr'; return $buttons; } add_filter("mce_buttons", "enable_more_buttons"); // Replaces the excerpt "more" text by a link function new_excerpt_more($more) { global $post; return '... Read More'; } add_filter('excerpt_more', 'new_excerpt_more'); // THUMBNAIL ADD CUSTOM SIZE add_action( 'after_setup_theme', 'ttl_image_setup' ); function ttl_image_setup() { add_image_size( 'blog-crop', 600, 350, true ); //(cropped) }