Skip to content

Move navbar to top of page? #130

Answered by evanwill
AKhan139 asked this question in Q&A
Discussion options

You must be logged in to vote

@AKhan139 to move around the navbar you will probably have to customize "_layouts/default.html".

Take a look at "_layouts/default.html". This is the base layout for ALL pages in your site, bringing the theme elements (like the header, nav, and footer) in around the content of the individual page. In the middle of this file you will see:

{% include collection-banner.html %}
{% include collection-nav.html %}
<main id="maincontent" role="main" class="flex-shrink-0">
  {{ content }}
</main>
{% include footer.html %}

If you want the navbar at the top, and do NOT want a banner style header, just delete the line {% include collection-banner.html %}. This is a pretty common customization--to pol…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AKhan139
Comment options

Answer selected by AKhan139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants