90 | A Specialty Miniature Sofa for a Glove Puppeteer

g+

Recently comissioned, custom designed, crafted and finished – a new miniature sofa with hidden features.

a puppeteer's miniature sofa with hidden features

a puppeteer’s miniature sofa with hidden features

The back of the settee is cut-out so that the arm of a puppeteer can easily fit through it.

cut-out at the back of the settee, shown in the wooden base structure

cut-out at the back of the settee, shown in the wooden base structure

The wooden structure is lined with upholstery foam and wadding and then covered in Dupioni silk.

puppeteer sofa with back cut-out, covered by elasticated silk

puppeteer sofa with back cut-out, covered by elasticated silk

The cut-out is covered by a strip of silk with an elasticated edge, and by two optional sections attached via magnets (not shown).

The seating  area is about 40cm wide, to match a decent sized glove puppet.

This sofa was shipped to Germany a few days ago.

Posted in Craft and Design | Tagged , , , , , , | Leave a comment

89 | Showing the Content of the ‘Posts Page’ before all Posts

g+

If you have set a static front page, and defined a ‘posts page’, WordPress will use the index template to show the list of posts.
This also means that any content you might have entereed into the ‘posts page’ will not get shown.

Make sure to add any content before you set the page as the ‘posts page’; otherwise the editor will not be shown, and a warning message will be displayed instead.

To show this content of the ‘posts page’ before the list of posts, you can use following code (to be inserted into functions.php of a child theme, the html structure of the example below is based on Twenty Fourteen):

function page_content_on_posts_page() {
if( get_option( 'page_for_posts' ) && is_home() ) {
global $wp_query;
if( !is_paged() && $wp_query->current_post == 0 ) { ?>
<article id="post-<?php echo get_option( 'page_for_posts' ); ?>" class="<?php echo implode(  ', ', get_post_class( 'posts-page-content', get_option( 'page_for_posts' ) ) ); ?>">

<div class="entry-content">
<?php
echo apply_filters( 'the_content', get_post( get_option( 'page_for_posts' ) )->post_content );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php }
}
}

add_action( 'the_post', 'page_content_on_posts_page' );

 

 

Posted in Tips & Tricks, Twenty Fourteen, WordPress | Tagged , , | Leave a comment

88 | Adding Widgets Between Posts in the Index Page

g+

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’. you … Check the whole post »

Posted in Tips & Tricks, Twenty Fifteen, WordPress | Tagged , , , , , , | Leave a comment

87 | Customize the Category Archive Page Title

g+

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 … Check the whole post »

Posted in Easy Coding for Wordpress, WordPress | Leave a comment