cleanup
This commit is contained in:
@@ -14,6 +14,7 @@ require_once locate_template( '/inc/roots-custom.php' ); // custom functions
|
||||
$roots_options = roots_get_theme_options();
|
||||
|
||||
// set the maximum 'Large' image width to the maximum grid width
|
||||
// http://wordpress.stackexchange.com/q/11766
|
||||
if (!isset($content_width)) {
|
||||
global $roots_options;
|
||||
$roots_css_framework = $roots_options['css_framework'];
|
||||
@@ -34,8 +35,8 @@ function roots_setup() {
|
||||
load_theme_textdomain('roots', get_template_directory() . '/lang');
|
||||
|
||||
// tell the TinyMCE editor to use editor-style.css
|
||||
// if you have issues with getting the editor to show your changes then use the following line:
|
||||
// add_editor_style('editor-style.css?' . time());
|
||||
// if you have issues with getting the editor to show your changes then
|
||||
// use this instead: add_editor_style('editor-style.css?' . time());
|
||||
add_editor_style('editor-style.css');
|
||||
|
||||
// http://codex.wordpress.org/Post_Thumbnails
|
||||
@@ -60,7 +61,7 @@ function roots_setup() {
|
||||
<?php }
|
||||
add_custom_image_header('roots_custom_image_header_site', 'roots_custom_image_header_admin');
|
||||
|
||||
add_theme_support('menus');
|
||||
// http://codex.wordpress.org/Function_Reference/register_nav_menus
|
||||
register_nav_menus(array(
|
||||
'primary_navigation' => __('Primary Navigation', 'roots'),
|
||||
'utility_navigation' => __('Utility Navigation', 'roots')
|
||||
@@ -69,11 +70,9 @@ function roots_setup() {
|
||||
|
||||
add_action('after_setup_theme', 'roots_setup');
|
||||
|
||||
/**
|
||||
* Register default roots sidebars.
|
||||
* Hook into 'widgets_init' function with a lower priority in your child
|
||||
* theme to remove these sidebars.
|
||||
*/
|
||||
// http://codex.wordpress.org/Function_Reference/register_sidebar
|
||||
// hook into 'widgets_init' function with a lower priority in your
|
||||
// child theme to remove these sidebars
|
||||
function roots_register_sidebars() {
|
||||
register_sidebar(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user