Last active
January 20, 2017 15:06
-
-
Save websupporter/31d87e2e86f59bdd180d35f3ece5e5dc to your computer and use it in GitHub Desktop.
For my blogpost http://websupporter.net/blog/de/starter-content-fuer-themes/
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 | |
add_action( 'after_setup_theme', 'theme_start_content' ); | |
function theme_starter_content() { | |
add_theme_support( 'starter-content', array( | |
'widgets' => array( | |
'sidebar-1' => array( | |
'text_business_info', | |
'search', | |
array( | |
'text', | |
array( | |
'title' => _x( 'My own title', 'theme-slug' ), | |
'text' => _x( 'My own text', 'theme-slug' ), | |
), | |
) | |
), | |
), | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment