Example #1
0
/** Theme setup function. */
function contango_theme_setup()
{
    /** Add theme support for Feed Links. */
    add_theme_support('automatic-feed-links');
    /** Post Formats */
    add_theme_support('post-formats', array('aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'video'));
    /** Add theme support for Custom Background. */
    add_theme_support('custom-background', array('default-color' => 'e9e9e9', 'default-image' => '%s/images/bg-pattern.png', 'wp-head-callback' => 'contango_custom_background_callback'));
    /** Set content width. */
    contango_set_content_width(580);
    /** Add custom image sizes. */
    add_action('init', 'contango_add_image_sizes');
}
Example #2
0
/** Theme setup function. */
function contango_theme_setup()
{
    /** Add theme support for Feed Links. */
    add_theme_support('automatic-feed-links');
    /*
     * Let WordPress manage the document title.
     * By adding theme support, we declare that this theme does not use a
     * hard-coded <title> tag in the document head, and expect WordPress to
     * provide it for us.
     */
    add_theme_support('title-tag');
    /** Post Formats */
    add_theme_support('post-formats', array('aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'video'));
    /** Add theme support for Custom Background. */
    add_theme_support('custom-background', array('default-color' => 'e9e9e9', 'default-image' => '%s/images/bg-pattern.png', 'wp-head-callback' => 'contango_custom_background_callback'));
    /** Set content width. */
    contango_set_content_width(580);
    /** Add custom image sizes. */
    add_action('init', 'contango_add_image_sizes');
}