Skip to content

Instantly share code, notes, and snippets.

@munts
Created March 9, 2017 16:46
Show Gist options
  • Save munts/ce8db9de428f6154ea3bd1e948967871 to your computer and use it in GitHub Desktop.
Save munts/ce8db9de428f6154ea3bd1e948967871 to your computer and use it in GitHub Desktop.
function theme_setup() {
add_theme_support('post-thumbnails'); // adds thumbnail support for the pages, posts and Projects CPT
add_image_size('work_cat_thumb', 800, 500, true);
add_image_size('post_thumbnail', 600, 250, true);
add_image_size('post_thumbnail_1', 70, 70, true);
// Register menus
register_nav_menus(array(
'frontpage-menu' => __('Front Page Menu', 'theme')
)
);
theme_default_menu();
}
add_action('after_setup_theme', 'theme_setup');
/**
* function to setup default theme menu
*/
function theme_default_menu() {
$menuname = 'One Front Page Menu';
$menulocation = 'frontpage-menu';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment