Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BronsonQuick/9126150 to your computer and use it in GitHub Desktop.
Save BronsonQuick/9126150 to your computer and use it in GitHub Desktop.
A gist to show @jordesign how to add Foundation 5 columns into WordPress.
<?php
/**
* Pop this into your functions.php if you like :)
*
*/
function jordesigns_mce_buttons( $buttons ) {
array_unshift( $buttons, 'styleselect' );
return $buttons;
}
add_filter( 'mce_buttons_2', 'jordesigns_mce_buttons' );
function jordesigns_mce_before_init( $init_array ) {
$init_array[ 'theme_advanced_styles' ] = "Two Columns=small-6 columns;Three Columns=small-12 medium-4 columns;Four Columns=small-6 medium-3 columns";
return $init_array;
}
add_filter ('tiny_mce_before_init', 'jordesigns_mce_before_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment