wordpress custom theme not showing featured image in edit post / page


/* To support featured image */
add_theme_support( ‘post-thumbnails’ );

/* Set thumbnail size */
set_post_thumbnail_size( 672, 372, true );

/* Set full width image */
add_image_size( ‘image-full-width’, 1038, 576, true );

/* To activate widgets */
function test_theme_widgets_init() {
register_sidebar( array(
‘name’ => __( ‘Primary Sidebar’, ‘test_theme’ ),
‘id’ => ‘sidebar-1’,
‘description’ => __( ‘Main sidebar that appears on the left.’, ‘test_theme’ ),
‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</aside>’,
‘before_title’ => ‘<h1 class=”widget-title”>’,
‘after_title’ => ‘</h1>’,
) );
}
add_action( ‘widgets_init’, ‘test_theme_widgets_init’ );

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s