# Customizing Casper Theme - Secondary Nav Issues

**URL:** <https://forum.ghost.org/t/customizing-casper-theme-secondary-nav-issues/14263>\
**Category:** Themes\
**Created:** [May 12, 2020, 3:32am UTC](https://forum.ghost.org/t/customizing-casper-theme-secondary-nav-issues/14263 "2020-05-12T03:32:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattrjk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mattrjk/32/7843_2.png) [@mattrjk](https://forum.ghost.org/u/mattrjk)\
**Post date:** [May 12, 2020, 3:32am UTC](https://forum.ghost.org/t/customizing-casper-theme-secondary-nav-issues/14263/1 "2020-05-12T03:32:40Z")

</div>

I’m using the default Casper theme as a base for a custom theme. I’m configuring the secondary nav with the conditional in the navigation.hbs file:

```
{{#if isSecondary}}
    <ul class="social-nav-list" role="menu">
        {{#foreach navigation}}
            <li class="nav-{{slug}}"><a href="{{url}}">{{slug}}</a></li>
        {{/foreach}}
    </ul>
{{else}}
    <ul class="nav" role="menu">
        {{#foreach navigation}}
            <li class="{{link_class for=(url) class=(concat "nav-" slug)}}" role="menuitem"><a href="{{url absolute="true"}}">{{label}}</a></li>
        {{/foreach}}
    </ul>
{{/if}}

```

This works as I want it to on every page except the main index. When scrolling down and activating the fixed nav bar (the outer site-nav-main div), the UL of the primary nav is treated as the secondary nav.

All other pages behave as expected and take the primary nav in the else block above. I can confirm by changing the class. All pages are using the same site-header, site-nav, and navigation partials.

Here’s the output from Chrome’s inspector. Top is index.hbs, bottom is author.hbs and all others.

 ![Screen Shot 2020-05-11 at 11.40.42 PM](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/3/314fddf6bc386dce8ca44bde04e2988afdf5afe6.png)

Any ideas?

---

<div class="post-metadata">

**Author:** ![mattrjk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mattrjk/32/7843_2.png) [@mattrjk](https://forum.ghost.org/u/mattrjk)\
**Post date:** [May 12, 2020, 5:18am UTC](https://forum.ghost.org/t/customizing-casper-theme-secondary-nav-issues/14263/2 "2020-05-12T05:18:12Z")

</div>

I discovered issue [#11772](https://github.com/TryGhost/Ghost/issues/11772) on Github, and upon further investigation, this is definitely the same problem. I’ve divined a fix, which I’ll post over there.
