Created
March 9, 2017 16:46
-
-
Save munts/ce8db9de428f6154ea3bd1e948967871 to your computer and use it in GitHub Desktop.
This file contains 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
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