# ¿Cómo agregar un tema en la navegación superior en una categoría específica?

**URL:** <https://meta.discourse.org/t/how-to-add-a-topic-in-top-nav-in-a-specific-category/87028>\
**Category:** Product Support\
**Created:** [9 Mayo, 2018 01:59 UTC](https://meta.discourse.org/t/how-to-add-a-topic-in-top-nav-in-a-specific-category/87028 "2018-05-09T01:59:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [10 Mayo, 2018 14:29 UTC](https://meta.discourse.org/t/how-to-add-a-topic-in-top-nav-in-a-specific-category/87028/6 "2018-05-10T14:29:59Z")

</div>

Tested this solution a bit more (modified [from this post](https://meta.discourse.org/t/best-way-to-customize-top-menu/35336/3)) try this (replace “Travel” with your category name):

```JS

<script>
Discourse.ExternalNavItem = Discourse.NavItem.extend({
    href : function() {
      return this.get('href');
    }.property('href')
  });

  I18n.translations.en.js.filters.bugs = { title: "Bugs", help: "Open Bugs" };
  I18n.translations.en.js.filters.google = { title: "Google", help: "Navigate to Google" };

  Discourse.NavItem.reopenClass({
    buildList : function(category, args) {
      var list = this._super(category, args);
      if(category && category.name == "Travel") {
        list.push(Discourse.ExternalNavItem.create({href: '/category/bug', name: 'bugs'}));
        list.push(Discourse.ExternalNavItem.create({href: 'https://google.com', name: 'google'}));
      }
      return list;
    }
  });
</script>

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-topic-in-top-nav-in-a-specific-category/87028)._
