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; +}