# decorateWidget no longer working

**URL:** <https://meta.discourse.org/t/decoratewidget-no-longer-working/100804>\
**Category:** Product Support\
**Created:** [10월 29, 2018, 4:28오후 UTC](https://meta.discourse.org/t/decoratewidget-no-longer-working/100804 "2018-10-29T16:28:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bencf](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@bencf](https://meta.discourse.org/u/bencf)\
**Post date:** [10월 29, 2018, 4:28오후 UTC](https://meta.discourse.org/t/decoratewidget-no-longer-working/100804/1 "2018-10-29T16:28:04Z")

</div>

I was using the following code in the `</head>` area of my customized theme. It was working fine, my custom navbar appeared. I tried to add another element to the custom navbar, and on preview nothing appeared. I tried to change the code back and it still didn’t work. I did some searching and can’t find any information on this, and also can’t find any errors in the console or on the page besides `Failed to load resource: the server responded with a status of 404 ()` for [https://mysite.com/javascripts/3804c7ea6ae9ec374a92e92086024dcdac103c0d.js](https://mysite.com/javascripts/3804c7ea6ae9ec374a92e92086024dcdac103c0d.js).

I have some custom CSS as well to hide other elements I don’t want, but looking at the source, I don’t think that’s what’s going on since the elements don’t even seem to be created.

And when I replace this code with the following, I don’t get any console output besides that 404:

```plaintext
<script>console.log("working");</script>

```

Any ideas on what is wrong or what I could look at to try to fix it?

```plaintext
api.decorateWidget('home-logo:after', helper => {
    return helper.h('div', [
        helper.h('div#banner_container', [
            helper.h('a', {
                href: 'https://mysite.com'
            }, helper.h('img#header_word_logo', {
                    src: 'https://mysite.com/uploads/default/original/1X/imgcode.png'
                })
            )
        ]),
        helper.h('ul#header_menu', [
            helper.h('li', [
                helper.h('a', {
                    href:'https://www.mysite.com/1',
                    title: 'Section1'
                }, 'Section1'),
            ]),
            helper.h('li', [
                helper.h('a', {
                    href:'https://www.mysite.com/2',
                    title: 'Section2'
                }, 'Section2'),
            ]),
            helper.h('li', [
                helper.h('a.current_page_item', {
                    href:'https://www.mysite.com/3',
                    title: 'Section3'
                }, 'Section3'),
            ]),
            helper.h('li', [
                helper.h('a', {
                    href:'https://www.mysite.com/4',
                    title: 'Section4'
                }, 'Section4'),
            ]),
            helper.h('li', [
                helper.h('a', {
                    href:'https://www.mysite.com/5',
                    title: 'Section5'
                }, 'Section5'),
            ]),
        ]),
    ]);
});
</script>

```

Thank you for any and all help in advance!

---

_[View the full topic](https://meta.discourse.org/t/decoratewidget-no-longer-working/100804)._
