# IN COMMON Theme

**URL:** <https://meta.discourse.org/t/in-common-theme/101225>\
**Category:** Theme\
**Created:** [November 3, 2018, 7:40pm UTC](https://meta.discourse.org/t/in-common-theme/101225 "2018-11-03T19:40:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)\
**Post date:** [November 5, 2018, 11:35am UTC](https://meta.discourse.org/t/in-common-theme/101225/2 "2018-11-05T11:35:51Z")

</div>

I managed to replace accents in category names, but not in cooked posts yet:

```javascript
<script type="text/discourse-plugin" version="0.1">
 // Remove accents in titles since the font does not support them.
 let stripAccentsFromTitles = function() {
   $('h1, h2, h3, h4, h3 .category-name').each(function(_, e) {
     e.textContent = e.textContent.normalize('NFD').replace(/[\u0300-\u036f]/g, "")
   })
 };

 api.decorateCooked(stripAccentsFromTitles)
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/in-common-theme/101225)._
