From 7e337a6f989bf7ac4ae38e19141d809f6d686dfd Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 18 Jan 2017 10:04:04 +1100 Subject: [PATCH] add BS elements to style formats --- functions.php | 7 +++++- inc/editor.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 inc/editor.php diff --git a/functions.php b/functions.php index d972187..338b6b0 100644 --- a/functions.php +++ b/functions.php @@ -65,4 +65,9 @@ require get_template_directory() . '/inc/bootstrap-wp-navwalker.php'; /** * Load WooCommerce functions. */ -require get_template_directory() . '/inc/woocommerce.php'; \ No newline at end of file +require get_template_directory() . '/inc/woocommerce.php'; + +/** + * Load Editor functions. + */ +require get_template_directory() . '/inc/editor.php'; diff --git a/inc/editor.php b/inc/editor.php new file mode 100644 index 0000000..14160d7 --- /dev/null +++ b/inc/editor.php @@ -0,0 +1,63 @@ + 'Lead Paragraph', + 'selector' => 'p', + 'classes' => 'lead', + 'wrapper' => true + ), + array( + 'title' => 'Small', + 'inline' => 'small' + ), + array( + 'title' => 'Blockquote', + 'block' => 'blockquote', + 'classes' => 'blockquote', + 'wrapper' => true + ), + array( + 'title' => 'Blockquote Footer', + 'block' => 'footer', + 'classes' => 'blockquote-footer', + 'wrapper' => true + ), + array( + 'title' => 'Cite', + 'inline' => 'cite' + ) + ); + $settings['style_formats'] = json_encode( $style_formats ); + return $settings; +}