Jump to content

How do I put Navigation beside logo/site title under header?( Developer mode Base template)

Recommended Posts

Site URL: https://www.airwayspostal.ca/

Hi guys,

I have been working on site.region file and tried to put navigation bar and site title/logo all under header section, to make them beside each other.

However, the base template may lack of some css or class which is not included in the base template.

Does anyone know how can I make them in the same line? Do I need something like flexbox css like divide column?


<!doctype html>

<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->

        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="initial-scale=1" />

    <body id="{squarespace.page-id}" class="{squarespace.page-classes}">


        <header class="header">

            <div class="header-container primary-wrapper clear-fix">
            <!--SITE TITLE OR LOGO-->

                {.section website}

                    <div data-content-field="site-title" class="site-title {.section logoImageUrl}has-logo-image{.end}">
                        <a href="/" class="site-title-link">
                            {.section logoImageUrl}
                             <img src="{logoImageUrl}?format=original" class="site-logo-image" alt="{siteTitle}" />
        <nav class="nav">

            <!-- Mobile Menu Checkbox -->
            <input type="checkbox" id="nav-mobile-checkbox" class="nav-mobile-checkbox" />

            <!-- Mobile Menu Header -->
            <header class="nav-mobile-header">

                <!-- Menu Icon -->
                <label for="nav-mobile-checkbox" class="nav-mobile-menu-label" onclick>
                    <span class="svg-fallback">&#9776;</span>
                    <svg width="12" height="10" xmlns="http://www.w3.org/2000/svg" version="1.1"><path class="burger" d="M0,1 12,1" stroke="#ffffff" stroke-width="2"/><path class="burger" d="M0,5 12,5" stroke="#ffffff" stroke-width="2"/><path class="burger" d="M0,9 12,9" stroke="#ffffff" stroke-width="2"/></svg>

                <!-- Site Title or Logo -->
                {.section website}
                <h1 data-content-field="site-title" class="nav-mobile-site-title site-title">
                    <a href="/" class="nav-mobile-site-title-link site-title-link">

                <!-- Cart Button -->
                <div class="nav-mobile-cart">CART</div>


            <div class="nav-container primary-wrapper">

                <squarespace:navigation navigationId="mainNav" template="navigation" />


                    <!--SITE TAGLINE-->

                    {.section siteTagLine}<p class="site-tagline">{@}</p>{.end}





        <main class="content">

            <div class="content-container primary-wrapper">
                <div class="content-legible" data-content-field="main-content">



        <footer class="footer">

            <div class="footerblocks">
                <div class="footerblocks-container primary-wrapper clear-fix">
                    <squarespace:block-field id="footerBlocksLeft" columns="1" label="Left Footer Content" />
                    <squarespace:block-field id="footerBlocksRight" columns="1" label="Right Footer Content" />

            <nav class="footernav">
                <div class="footernav-container primary-wrapper">
                    <squarespace:navigation navigationId="footerNav" template="footer-navigation" />


        <squarespace:script src="site-bundle.js" combo="false"/>

Link to comment
  • Replies 2
  • Created
  • Last Reply


I made flexbox as the style of the class "header-container"

I found out that  <squarespace:navigation navigationId="mainNav" template="navigation" /> is the navigation bar showing up on desktop web.

However, when I move the nav section in the header, the nav bar would not work when I use mobile to view the page.

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.