Theme Features

We discontinue development of the required+ Foundation theme – here is why.×

Custom backgrounds, a header image or post formats? WordPress theme features are great additions and easy to use. We put you in control on what is used in your next responsive theme. In your child theme functions.php file we attached two functions to the after_setup_theme hook to easily customize what features of WordPress are activated and used by your theme.

Before the parent theme setup

By nature WordPress loads the child theme functions.php file before the one from your parent theme and therefore you can overwrite pluggable functions and define stuff and load it before the parent theme gets the chance. In your child theme you find the required_starter_themesetup function:

 * This makes the child theme work. If you need any
 * additional features or let's say menus, do it here.
 * @return void
function required_starter_themesetup() {

	load_child_theme_textdomain( 'requiredstarter', get_template_directory() . '/languages' );

	// Register an additional Menu Location
	register_nav_menus( array(
		'meta' => __( 'Meta Menu', 'requiredstarter' )
	) );

	// Add support for custom backgrounds and overwrite the parent backgorund color
	add_theme_support( 'custom-background', array( 'default-color' => 'f7f7f7' ) );

add_action( 'after_setup_theme', 'required_starter_themesetup' );

Sometimes you want your child theme to not use certain theme features or deactivate stuff included by our parent theme, so read on.

After the parent theme setup

Let’s say you don’t want your theme to use a custom background or you don’t need a menu, that’s when required_starter_after_parent_theme_setup is coming in handy:

 * With the following function you can disable theme features
 * used by the parent theme without breaking anything. Read the
 * comments on each and follow the link, if you happen to not
 * know what the function is for. Remove the // in front of the
 * remove_theme_support('...'); calls to make them execute.
 * @return void
function required_starter_after_parent_theme_setup() {

	 * Hack added: 2012-10-04, Silvan Hagen
	 * This is a hack, to calm down PHP Notice, since
	 * I'm not sure if it's a bug in WordPress or my
	 * bad I'll leave it here:
	if ( ! isset( $GLOBALS['custom_image_header'] ) )
		$GLOBALS['custom_image_header'] = array();

	if ( ! isset( $GLOBALS['custom_background'] ) )
		$GLOBALS['custom_background'] = array();

	// Remove custom header support:
	//remove_theme_support( 'custom-header' );

	// Remove support for post formats:
	//remove_theme_support( 'post-formats' );

	// Remove featured images support:
	//remove_theme_support( 'post-thumbnails' );

	// Remove custom background support:
	//remove_theme_support( 'custom-background' );

	// Remove automatic feed links support:
	//remove_theme_support( 'automatic-feed-links' );

	// Remove editor styles:

	// Remove a menu from the theme:
	//unregister_nav_menu( 'secondary' );

add_action( 'after_setup_theme', 'required_starter_after_parent_theme_setup', 11 );

We prepared the most common used lines for you, so you’ll only have to remove the // and the code is run so the feature is disabled.

Get around on your site

Ready for navigation, you don’t need a compass to find the page or post you where looking for with our handy guide.

Setup navigaiton »