Adding Widgets Between Posts in the Index Page

For a child theme of the (current) default theme Twenty Fifteen – a way to add a new sidebar aka widget area to show after the first post in the index page; making use of the action hook ‘the_post’.

/* WIDGET AREAS aka SIDEBARS INBETWEEN POSTS IN LOOP OF INDEX PAGE */

add_action( 'after_setup_theme', 'twentyfifteen_child_setup' );

function twentyfifteen_child_setup() {
add_action( 'widgets_init', 'twentyfifteen_child_widgets_init' );
add_action( 'the_post', 'twentyfifteen_child_inter_posts_sidebars' );
}

//register sidebar for inbetween posts

function twentyfifteen_child_widgets_init() {

	register_sidebar( array(
		'name' => __( 'First Inter-Posts Widget Area ', 'twentyfifteen' ),
		'id' => 'inter-posts-1',
		'description'   => __( 'Add widgets here to appear between post 1 and 2 in your index page.', 'twentyfifteen' ),
		'before_widget' => '<aside id="%1$s" class="widget inter-post-widget %2$s">',
		'after_widget'  => '</aside>',
		'before_title'  => '<h2 class="widget-title">',
		'after_title'   => '</h2>',
	) );

}

//widget output between posts in index page

function twentyfifteen_child_inter_posts_sidebars() {
	global $wp_query;
	if( is_home() && $wp_query->current_post == 1 ) {
		dynamic_sidebar( 'inter-posts-1' );
	}
	
}

you will need to create your own CSS based on the CSS class .inter-post-widget …

example:

.inter-post-widget { 
	margin: 20px 8.33%;
	padding: 3%;
	width: auto;
}

Customize the Category Archive Page Title

WordPress allows you to set a ‘category base’ to show in the permalinks of the category archive pages – you can set this under ‘dashboard – settings – permalinks – category base’.

However, the latest default theme Twenty Fifteen is using a function to generate the Category Archive page title – get_the_archive_title() – which simply output ‘Category’ and does not reflect on the ‘category base’ entry.
Luckily, the function applies a filter which we can use to influence the Category Archive page title.

Example of a filter function:

add_filter( 'get_the_archive_title', 'use_category_base_in_archive_title' );
 
function use_category_base_in_archive_title( $title ) {
    if ( is_category() && get_option('category_base') ) $title = str_replace( 'Category:', ucfirst( get_option('category_base') ) . ':', $title );
    return $title;
}

As the category base is usually all lowercase letters, the suggested code also capitalizes the first letter when used as Category Archive page title.

Super Dollfie(R) Settee

Super Dollfie (R) settee - made to order
Super Dollfie (R) settee – made to order

Larger than usual, but still a miniature sofa – the perfect size for a Super Dollfie ® 13.

This hand crafted settee is upholstered with nearly two yards of quality purple Dupioni Silk.

The full width is over 60cm (24inch), with a comfortable seating height of 18cm (7inch).

Made to order.

This particular one was shipped on Monday, and has just reached its new owner in France.

A Silk Settee, the right size for a Super Dollfie (R) doll - also the perfect sleeping place for a Yo Monkey
A Silk Settee, the right size for a Super Dollfie (R) doll – also the perfect sleeping place for a Yo Monkey