89 | rustic hall tree – miniature

g+

It started with an idea.
And then came a pile of timber, purposefully ripped from larger boards, neatly ordered by size and stacked up nicely.

a pile of timber
timber, ready to start production

Progressing into the raw structure.
Would also look great in natural wood just treated with linseed oil.

the finished hall tree prior to painting and staining
hall tree finished before painting

Finally white washed and oiled with the hardware added.

the finished hall tree painted white with dark walnut oiled bench seat
finished hall tree painted white with dark walnut oiled bench seat

This is a little miniature doll furniture project in 1/12 scale.
The finished hall tree is just under 7 1/2 inch tall. AA battery for size comparison.

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

88 | Show Custom Site Title or Tagline per Page

g+

to have a custom site title and/or tagline on different pages (static pages only) of your WordPress site;
one possible approach:

/*
* customize different Site Title 
* and Tagline per (static) page
*/

// create meta boxe for 'Custom Site Title' field below page editor

add_action( 'admin_menu', 'custom_site_title' );
add_action( 'save_post', 'save_custom_site_title' );

function custom_site_title() {
	add_meta_box( 'custom_site_title', 'Custom Site Title for this page <small>(if left empty, the general Site Title will be used)</small>', 'custom_site_title_input_function', 'page', 'normal', 'high' );
}

function custom_site_title_input_function() {
	global $post;
	echo '<input type="hidden" name="custom_site_title_input_hidden" id="custom_site_title_input_hidden" value="'.wp_create_nonce( 'custom_site_title-nonce' ).'" />';
	echo '<input type="text" name="custom_site_title_input" id="custom_site_title_input" style="width:100%;" value="'.get_post_meta( $post->ID, '_custom_site_title', true ).'" />';
}

function save_custom_site_title( $post_id ) {
	if (isset( $_POST['custom_site_title_input_hidden'] )) if (!wp_verify_nonce($_POST['custom_site_title_input_hidden'], 'custom_site_title-nonce')) return $post_id;
	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
	if (isset( $_POST['custom_site_title'] )) {
		$customSiteTitle = $_POST['custom_site_title_input'];
		update_post_meta( $post_id, '_custom_site_title', $customSiteTitle );
	}
}

// create meta boxe for 'Custom Tagline' field below page editor

add_action( 'admin_menu', 'custom_site_tagline' );
add_action( 'save_post', 'save_custom_site_tagline' );

function custom_site_tagline() {
	add_meta_box( 'custom_site_tagline', 'Custom Tagline for this page <small>(if left empty, the general Tagline will be used)</small>', 'custom_site_tagline_input_function', 'page', 'normal', 'high' );
}

function custom_site_tagline_input_function() {
	global $post;
	echo '<input type="hidden" name="custom_site_tagline_input_hidden" id="custom_site_tagline_input_hidden" value="'.wp_create_nonce( 'custom_site_tagline-nonce' ).'" />';
	echo '<input type="text" name="custom_site_tagline_input" id="custom_site_tagline_input" style="width:100%;" value="'.get_post_meta( $post->ID, '_custom_site_tagline', true ).'" />';
}

function save_custom_site_tagline( $post_id ) {
	if (isset( $_POST['custom_site_tagline_input_hidden'] )) if (!wp_verify_nonce($_POST['custom_site_tagline_input_hidden'], 'custom_site_tagline-nonce')) return $post_id;
	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return $post_id;
	if (isset( $_POST['custom_site_tagline'] )) {
		$customSiteTagline = $_POST['custom_site_tagline_input'];
		update_post_meta( $post_id, '_custom_site_tagline', $customSiteTagline );
	}
}

//preparing the output

add_filter( 'bloginfo', 'custom_site_title_tagline_output', 2, 10 );

function custom_site_title_tagline_output( $site_bloginfo, $show ) {
	global $post;
	if( $show == 'name' && is_page() && get_post_meta( $post->ID, '_custom_site_title', true ) ) {
		$site_bloginfo = get_post_meta( $post->ID, '_custom_site_title', true );
	}
	if( $show == 'description' && is_page() && get_post_meta( $post->ID, '_custom_site_tagline', true ) ) {
		$site_bloginfo = get_post_meta( $post->ID, '_custom_site_tagline', true );
	}
	return $site_bloginfo;
}

add the code to functions.php of your theme; could also be made into a plugin as it is not theme dependant.
might also change meta title and/or tagline; not tested for interference with seo plugins.
code in pastebin https://pastebin.com/n9Xd5uZg

Posted in Tips & Tricks, WordPress | Tagged , , , , , | Not open for comments

87 | Better Gallery Alignment in Twenty Seventeen

g+

The new theme Twenty Seventeen shows the right thumbnail image in the default 3-column gallery with just a little space to its right,  which is particular noticable when you post a full width image directly above or below the gallery. … Check the whole post »

Posted in Tips & Tricks, Twenty Seventeen, WordPress | Tagged , , , , | Not open for comments

86 | A Specialty Miniature Sofa for a Glove Puppeteer

g+

Recently comissioned, custom designed, crafted and finished – a new 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. The wooden structure is lined with upholstery … Check the whole post »

Posted in Craft and Design | Tagged , , , , , , | Not open for comments