Created
July 30, 2016 02:34
-
-
Save BeardedGinger/356a2766a57d7aeed4c2661e4fc3d752 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
<?php | |
/** | |
* Default settings and associated options for the Genesis Framework | |
* that can be set upon theme activation | |
*/ | |
add_action( 'after_switch_theme', 'lc_genesis_default_settings' ); | |
/** | |
* Update settings on theme switch (activation) | |
*/ | |
function lc_genesis_default_settings() { | |
if( ! function_exists( 'genesis_update_settings' ) ) | |
return; | |
$settings = array( | |
'update' => 0, // bool | |
'update_email_address' => '', // string (email) | |
'feed_uri' => '', // string (url) | |
'redirect_feed' => 0, // bool | |
'comments_feed_uri' => '', // string (url) | |
'redirect_comments_feed' => 0, // bool | |
'site_layout' => 'content-sidebar', // radio ( content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar, full-width-content ) | |
'blog_title' => 'text', // select ( text, image ) | |
'breadcrumb_front_page' => 0, // bool | |
'breadcrumb_posts_page' => 0, // bool | |
'breadcrumb_single' => 0, // bool | |
'breadcrumb_page' => 0, // bool | |
'breadcrumb_archive' => 0, // bool | |
'breadcrumb_404' => 0, // bool | |
'breadcrumb_attachment' => 0, // bool | |
'comments_posts' => 0, // bool | |
'comments_pages' => 0, // bool | |
'trackbacks_posts' => 0, // bool | |
'trackbacks_pages' => 0, // bool | |
'content_archive' => 'full', // select ( full, excerpts ) | |
'content_archive_limit' => '0', // int only applicable when using excerpts on content_archive | |
'content_archive_thumbnail' => 0, // bool | |
'image_size' => '', // select ( thumbnail, medium, large, full, etc. ) * dependent on the registered | |
// image sizes for your site | |
'image_alignment' => '', // select ( alignleft, alignright ) | |
'posts_nav' => '', // select ( prev-next, numberic ) | |
); | |
genesis_update_settings( $settings ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment