Add H1 through H6 buttons to the WordPress Classic Editor toolbar so you can wrap the current selection in semantic heading tags without leaving Text mode or losing scroll position.
TIP
Select the phrase first, then click H2 (or another level) for clean heading markup.
Getting started
- Install WP Quick Headings in Chrome.
- Open Posts → Add New or edit an existing post in WordPress admin.
- Switch the editor to the Text tab (not Visual).
- Look for H1–H6 buttons appended to the Classic Editor toolbar above the content textarea.
Toolbar buttons
The extension injects an inline block (#custom-h-btns) into #ed_toolbar with six inputs labeled H1 through H6. A MutationObserver re-attaches the buttons if the toolbar loads late (common on slow admin pages).
Wrap behavior
Buttons use mousedown with preventDefault so the #content textarea keeps focus. The selected range wraps in <hN>...</hN> via setRangeText. Both textarea and window scroll positions are preserved, and the caret lands just after the closing tag.
Where it works
- Content scripts run on
*/wp-admin/post.php,post-new.php, andedit.php. - Targets the Classic Editor
#contenttextarea in Text mode. - Does not affect the Block Editor (Gutenberg) or the Visual tab.
- Manifest declares zero permissions; injection is pure DOM scripting on pages you open.
WARNING
If you only use Gutenberg, this extension will not add buttons. It is built for the legacy Classic Editor.
Features
- Classic Editor toolbar: Buttons append to #ed_toolbar on post screens.
- H1–H6 wrapping: One-click heading tags around selections.
- Focus preservation: No blur or scroll jumps when clicking buttons.
- Auto-injection: MutationObserver re-injects if the toolbar loads late.
- Minimal permissions: Content scripts only, no storage required.
- Text mode only: Targets the #content textarea in HTML mode.
Privacy
No data is stored and no network requests are made. The extension only modifies the editor DOM on WordPress admin pages you visit.
See the Apps & Extensions Policy and Privacy Policy for company-wide details.
Need help?
Buttons appear only when the Classic Editor toolbar is present. On list screens (edit.php) the toolbar may be absent; use post edit screens for headings.
Contact us via the support page if you need more assistance.