Title: HTML in widget title
Last modified: August 21, 2016

---

# HTML in widget title

 *  [EOSlover](https://wordpress.org/support/users/eoslover/)
 * (@eoslover)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-in-widget-title/)
 * I have searched high and low for some info on adding HTML to the widget titles(
   for example A tag or SPAN tag).
 * It seems that this feature is not native to WordPress and it has been requested
   2 years ago, and nothing happened.
 * I dont want a plugin to allow for this functionality, since the functionality
   seems pretty basic and straightforward.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [aephotos](https://wordpress.org/support/users/aephotos/)
 * (@aephotos)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-in-widget-title/#post-4170335)
 * **YES.**
 * This is a simple thing to add, it seems. There are a lot of work behind trying
   to get the headings to Look right. Too bad its so hard to do. Have to go in coding
   it there. Takes **a lot of time** for the little detail it gives. And while a
   plugin that does this usually adds more stuff, still **unnecessary **to me.
 * There is another plugin, a premium one, **that gives this functionality** and
   a real drag-n-drop editor instead of the current one. Makes it more usable for
   clients as well… but still unnecessary for this detail.
 * [http://bit.ly/1ayhqHS](http://bit.ly/1ayhqHS)
 *  [webmystery](https://wordpress.org/support/users/webmystery/)
 * (@webmystery)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/html-in-widget-title/#post-4170463)
 * Simplest solution – don’t show the real title, and in your main widget text, 
   create your own title using tags like `<h3 class="widget-title"> Your Title <
   span>here</span> html</h3>` A plugin like Enhanced Text Widget will allow this.
 *  [crgeary](https://wordpress.org/support/users/crgeary/)
 * (@crgeary)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/html-in-widget-title/#post-4170534)
 * If your still looking for a solution, try this:
 * `remove_filter( 'widget_title', 'esc_html' );`
 * By default, WordPress adds the following filters to the **widget_title**:
    - wptexturize
    - convert_chars
    - esc_html
 * So you can remove them using the **remove_filter()** function
 *  [longnha](https://wordpress.org/support/users/longnha/)
 * (@longnha)
 * [12 years ago](https://wordpress.org/support/topic/html-in-widget-title/#post-4170535)
 * [@crgeary](https://wordpress.org/support/users/crgeary/): I tried and it’s not
   working!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTML in widget title’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 5 participants
 * Last reply from: [longnha](https://wordpress.org/support/users/longnha/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/html-in-widget-title/#post-4170535)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
