We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How do I move the navigation bar below the header?

How do I move the navigation bar below the header?

PNWS19
New Member
4 0 0

I have the debut theme and I'd like to move the navigation bar from 'inside' the header to just below it. I'd also like to make it coloured. Is there any way to do this?

Store: analoguestudiodesigns.co.uk

Replies 3 (3)

PNWS19
New Member
4 0 0

Any ideas?

Alan15
Shopify Partner
149 27 75

It's a little difficult to move the header section. It and the footer are static sections. The other sections on the page are dynamic and can be rearranged in the site customization. So you probably need to change the code.
You can try this:

If you go to the header.liquid file in the sections folder, you can remove the navigation bar by deleting this code (should be around line 105):
{% if section.settings.align_logo == 'left' %}
<nav class="grid__item medium-up--one-half small--hide" id="AccessibleNav" role="navigation">
{% include 'site-nav', linklist: section.settings.main_linklist %}
</nav>
{% endif %}

Then add the code above back into the theme.liquid file after the line:

{% section 'header' %}

something like this:


{% section 'header' %}
<nav style="width: 100%;" class=" small--hide" id="AccessibleNav" role="navigation">
{% include 'site-nav', linklist: 'main-menu' %}
</nav>

in the header.liquid file you may need to move the right side icons over by floating them to the right at around line 110
<div style="float:right"; class="grid__item ......>

To change the color, add background-color to the header divs in header.liquid file

It's probably not the best way but it might work.

Need more help? Contact me here
JonRus
Visitor
2 0 0

Hello, This worked perfect for me besides one thing. I'm just struggling with the right icons, I've pushed them back across but they are sitting a little high in the corner, Also looking to add colour behind my main menu navigation and change the text colour. I looked to add colour to background like you had advised but can't see where to specify the colour