Why .widget-area is outside of .site-content in Underscores starter theme?

The .widget-area actually IS inside .site-content. For anyone wondering why .content-area has a <main> child-element, rather than being the <main> element itself, here is the explanation: It allows for CSS styling while preserving HTML5 semantics. Namely it allows for easier negative margin management as well as background and other styling (full explanation here).

I don’t know why categories are showing below post

I assumed that your are using undersocres starter theme to build your theme and you probably copied the code from template-tags.php inside inc folder in your theme. Now do this: keep this code inside template-tags.php function category_renown() { $categories = get_the_category_list( esc_html__( ‘ ‘, ‘openblogger’ )); if ( $categories ) { printf( ‘<span class=”catu-links”>’ . … Read more

using themename_the_custom_logo() in template-tags?

first of all why he did not use the_custom_logo() method itself in the header file This function checks that the the_custom_logo function exists for backwards compatibility, so that the function works on WordPress versions older than 4.5. The reason this is done in inside twentysixteen_the_custom_logo() is so the theme can just use a single function … Read more