Skip to content
Aristeides Stathopoulos edited this page Jan 15, 2015 · 6 revisions

When building your own shell, you can activate parts of the Maera framework using theme supports.
Theme supports provide functionality and classes that you can use in your shells without requiring you to write your own code, thus taking advantage of Maera's structure.

Theme supports are usually loaded using the after_setup_theme action.
In addition to the default theme features Kirki includes the following extra features:

<?php

function my_theme_supports() {

	// Add breadcrumbs support.
	// prompts for the installation of the Breadcrumb Trail plugin: https://wordpress.org/plugins/breadcrumb-trail/
	// You will then have to configure them using this as an example: https://github.com/justintadlock/breadcrumb-trail#breadcrumb-trail
	add_theme_support( 'breadcrumbs' );

	// Add Less Compiler support
	// Prompts the user to install the compiler plugin: https://wordpress.org/plugins/lessphp/
	add_theme_support( 'less_compiler' )

	// Add SASS/SCSS Compiler support
	// Prompts the user to install the compiler plugin: https://wordpress.org/plugins/lessphp/
	add_theme_support( 'sass_compiler' )

}
add_action( 'after_setup_theme', 'my_theme_supports' );

?>
Clone this wiki locally