160 likes | 171 Views
Adding custom heading style formats to WP visual editor without a plugin is easier. All you need to add some functions to function.php file of your theme or child theme. Integrate FontAwesome for icon and some CSS style. This tutorial uses Genesis Framework WordPress template.<br>[ https://rainastudio.com/custom-heading-style-formats/ ]
E N D
Add Custom Heading Style Formats to WP Visual Editor Without Plugin (RainaStudio Map 101) RainaStudio
Add Custom Heading Style Formats to WP Visual Editor Without Plugin (RainaStudio Map 101)
Custom Heading Style Formats in the Genesis Framework Let’s get hands dirty with code. We are using FontAwesome Icon font for the icons before each heading. Install FontAwesome icon font on your website, including this piece of code into functions.php file.
Custom Heading Style Formats in the Genesis Framework The following code is to enable hidden TinyMCE “Formats” buttons. If you use the Genesis child theme, add below code snippet in your child theme’s functions.php file.
Custom Heading Style Formats in the Genesis Framework Save the file, visit Posts > All Posts ]> Post[Edit], and You’ll notice the TinyMCE Formats button to WordPress visual editor like the following image.
Custom Heading Style Formats in the Genesis Framework We are going to add custom heading styles to the drop-down menu of this button. Add the following code to functions.php file.
Custom Heading Style Formats in the Genesis Framework Before doing that, we need to add some CSS code to style.css file of your child theme. Open the file and include the following code in the data.
Custom Heading Style Formats in the Genesis Framework We are done adding code to our theme’s file for custom heading style formats. Edit article, add as much as custom headings and sub-headings you want, make it colorful and enjoyable.