There’s an easy way.
Open functions.php and add this code. It works for many html entities
// got this form http://www.sycha.com/wordpress-add-hr-button-tinymce-visual-editor
function enable_more_buttons($buttons) {
$buttons[] = 'hr';
/*
Repeat with any other buttons you want to add, e.g.
$buttons[] = 'fontselect';
$buttons[] = 'sup';
*/
return $buttons;
}
add_filter("mce_buttons", "enable_more_buttons");
//add_filter("mce_buttons_2", "enable_more_buttons"); // add to second row
//add_filter("mce_buttons_3", "enable_more_buttons"); // add to third row
Related Posts:
- How to enable edit button in the theme’s customize UI?
- Best collection of code for your 'functions.php' file [closed]
- Should all plugins be encapsulated in a Class?
- How can I delete orphan keys in WordPress database tables?
- How to add “Stick this post to the front page” to front end?
- Is it a good idea to edit an already existing plugin to add more functionality?
- OpenID for WordPress 3.x? [duplicate]
- Show Similar Post Titles ( Similar to Stack Exchange )
- Plugin (or Theme) containing its own Plugins?
- How do I unlock a post programmatically?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- How to create extendable wordpress plugins
- Open external links in a new window
- How can I limit functionality in one version of a plugin?
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- Which functions in theme or plugin load first
- Any way to use a custom Parameter for youtube embed without using an iframe?
- Add CSS animation as Preloader to WordPress
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- WP Plugin for Terms of Use
- Woocommerce: Changing the variations select default value? [closed]
- Automagic Link Shortening for Non-Hosted WP
- Akismet plugin is deleting spam despite preferences
- Distributing and packaging plugins
- Multiple Instances sharing the same database in a development environment
- How to add rewrite rules and pagination to retrieve attachments files?
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- FacetWP group listings by custom field [closed]
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- Remove Duplicator plugin from admin menu if not an administrator
- Input with spaces in Shortcode attributes overwritten by defaults
- Add a custom form on the post-new.php admin page
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- className not populating in custom block
- Why is WPBakery Page Builder backend editor not clickable? [closed]
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to redirect users to their profile after they successfully edit their profile
- Getting Theme element into plugins page editor in wp admin
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Basic gallery plugin suggestion [closed]
- How to add custom table style for table block in gutenberg editor
- Free paypal cart solution [closed]
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- How to add fields in the WordPress editor?
- I am trying to make a field show and save from quickedit screen
- Customizing a blog page layout
- Hide a certain category name from Related Posts
- how to add custom info on author page? plugin, child theme?
- How to add HTML5 required on wp_editor
- Plugin permissions for Editor role
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- Widget where it can make changes to the container
- Role based permission edit for plugins
- Call javascript functions from each page
- Can’t create new CPTs when menu hidden
- Gathering all Custom Post Type posts in to array/object the proper way
- Link Posts to External URL
- Multiple Post Thumbnails Plugin – Need help with code
- Custom Post Type, Custom Columns List
- How to prevent plugin, theme installation failures on WordPress?
- Check if theme supports sidebar
- WordPress search input in database, to edit information via form and update the database
- Adding category base to url in custom post giving 404?
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- Load my Inline js footer area
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Woocommerce list variations that are added already to cart in Single Product
- Flexslider empty slide
- How to fix slow comment query?
- Share on social media created listing after submission
- Translation plugin with default language?
- Best approach to serve static content within a regular page
- Custom pages with plugin
- WP plugin calls for custom pages
- Changing the body of mail sent to new user registration
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Multiselect value in wp_query
- get_var result empty for query of custom table in plugin admin
- Posts are deleted everyday at night
- I want to remove the register/login WordPress top bar from my website
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- do_shortcodes() isn’t working
- WordPress Code Access to Restricted Content without Registration
- What can I do to customize a widget provided with this plugin? from where have I to start?
- WordPress: code structure
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to pre-set WordPress settings for specific posts?
- Create Custom Coupon Type
- Is website for online game guides doable in WordPress? [closed]
- Using ACF to allow user to add and edit multiple saved forms