Created
February 21, 2014 00:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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