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