• Follow us on Twitter
  • Join our Facebook Group
  • Join me on Google Plus
  • Add me on Linkedin
  • RSS
Welcome to Ontwerps close

  • Home
  • Over
  • Diensten
  • Portfolio
  • Blog
  • Contact

Blog

WordPress shortcode for Content In Column

0 Comments/ in Blog, Wordpress-CMS / by ontwerps
juni 30, 2010 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]

No related posts.

← download button shortcode in wordpress
WordPress shortcode Hide Content From The Public →
Comments

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Geef een reactie Reactie annuleren

Je e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

*

*

De volgende HTML tags en attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categorieën

Tags

blackberry borders branding centos chrome cms color CSS css3 cycling debug font glyphs gradients hover HTML-HTML5 image import invoice iphone joomla jquery linux magento osx pattern photoshop scroll sql table Template textures twitter vcard Wordpress-CMS
© Copyright2012 - Design by ontwerps