Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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