zirosas
6/26/2013 - 8:34 PM

WordPress theme_support

WordPress theme_support

add_theme_support('menus');

register_sidebar(
    array(
        'before_widget' => '<div class="widget">',
        'after_widget' => '</div>',
        'before_title' => '<h3>',
        'after_title' => '</h3>',
    )
);

add_theme_support('post-thumbnails');

function shortcode_twitter() {
    return '<a href="http://twitter.com/username">@username</a> - Follow me!';
}

add_shortcode('twitter', 'shortcode_twitter');