Edit the function.php file.

function half($atts, $content = null) {
	return '<div class="half">'.$content.'</div>';
}
function half_last($atts, $content = null) {
	return '<div class="half-last">'.$content.'</div><br style="clear:both" />';
}
add_shortcode('half', 'half');
add_shortcode('half_last', 'half_last');

Edit the the style.css file:

.half, .half-last {float:left;width:47%;margin:10px 0;margin-right:6%;}
.half-last {margin-right:0}

Usage:

[half]Mauris ut lectus erat. In condimentum, turpis ...[/half]

[half_last]Mauris ut lectus erat. In condimentum, turpis ...[/half_last]

Recommended Posts

No comment yet, add your voice below!


Add a Comment

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *