Jump to content

Place logo above navbar (secondary header?)

Recommended Posts

7 hours ago, AHC said:

Site URL: https://frog-vuvuzela-w66t.squarespace.com/config/pages

hello!

I’m trying to create a header similar to the image below. I am guessing I need to create a secondary header above the navbar but am struggling to figure out the coding. Any advice?

Veritas School  Classical Christian School  Richmond, VA.png

Your site is private. Can you setup password & share url?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

.header-title-nav-wrapper {
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
}

//change navbar background//
.header-nav {
      background-color: rgb(18,33,54);
      width: 150vw !important;
      align-items: flex-start;
      height: 6vw !important;
      line-height: 6vw;
    margin-top: 2vw;
}

//full width header//
.header{
      margin-left: -5vw
}

//reset logo location//
.header-nav{
      padding-left: 5vw !important;
}

.header-title-logo img{
      padding-left: 4vw !important
}

//fix mobile//
@media screen and (max-width: 646px) {
  .header--menu-open .header-menu {
    opacity: 1;
    visibility: visible;
    color: black !important;
  }
}

 

This is what I have currently but it has a lot of problems. The button disappears on desktop view and the burger isn’t showing on mobile. Also at a certain width it adjusts and you can’t see the navbar. 

 

Any suggestions?

Link to comment
  • 2 weeks later...
  • 2 years later...
14 hours ago, CM_Jag said:

Hi there! I'm also trying to do the same logo & button above nav/page menu with a dividing line in between (see image below). Any suggestions which code might work? 

For reference, the website is: https://www.ldmcounselling.net/

Thanks so much! 

Screenshot 2024-02-20 123206.png

Add this code to Website > Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('.header-display-desktop .header-nav').appendTo('.header-display-desktop');
})
</script>
<style>
  .header-nav {
    width: 100% !important;
    padding-left: 0 !important;
    border-top: 1px solid black;
    padding-top: 10px;
    margin-top: 10px;
}

.header-display-desktop {
    flex-wrap: wrap;
}

nav.header-nav-list {
    width: 100% !important;
    justify-content: flex-start !important;
}
</style>

image.thumb.png.8760e5723d0008dd05cd411a76b67c08.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.