Jump to content

[Share] Secondary Navigation with Social Icons/Logo

Recommended Posts

We will create a secondary navigation bar like this screenshot.

image.png.11f9533289652ae269b9ae623807bca1.png

We will use Announcement Bar to achieve this. You can follow these steps.

If you can't make it work, you can share site url in comment. I can check easier.

#1. First, you need to enable Announcement Bar.

image.thumb.png.85e0189ad7101878fba2f14edec5d4ac.png

image.thumb.png.5be2c5f4bbbbf15ec6dad39b64eb2e65.png

#2. Next, add 3 texts (with links): Facebook, Instagram, Youtube.

image.png.ca5330339b2ff17b522fec47139637b2.png

And Logo text + Logo link in Line 2 (we will use code to turn Logo text to Logo Image in below steps).

image.png.6683cef0c8261120783af2318e07cdd1.png

we will have

image.png.0c63caddcec926399f8e526be8405a61.png

#3. Edit Site Footer > Add a Code Block > Paste this code

(Note: Code Block is available in Personal Plan, and this code can run on Personal Plan)

If you use a Business Plan or higher, you can use code to Code Injection > Header

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />

image.png.020b418d4e59606ef860aca41e98d264.png

#4. Use this code to Custom CSS box to turn text Facebook/Instagram/Youtube to Icons

div#announcement-bar-text-inner-id {
  /* remove links underline */
  p a {
    text-decoration: none !important;
}
  /* text to icons */
  a[href*="facebook"], a[href*="instagram"], a[href*="youtube"] {
    font-size: 0;
}
a[href*="facebook"]:before {
    content: "\f09a";
    font-family: "Font Awesome 6 Brands";
    font-weight: bold;
    font-size: 16px;
    margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
}
a[href*="instagram"]:before {
    content: "\f16d";
    font-family: "Font Awesome 6 Brands";
    font-weight: bold;
    font-size: 16px;
    margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
}
a[href*="youtube"]:before {
    content: "\f167";
    font-family: "Font Awesome 6 Brands";
    font-weight: bold;
    font-size: 16px;
  margin-left: 5px;
  margin-right: 5px;
  display: inline-block;
}
}

image.thumb.png.aaf7e52f4630092af7703a9c0cac6816.png

we will have

image.png.c679c0d451cb19e26199d6d4c68764df.png

#5. Use this code to Custom CSS box both make both same line.

@media screen and (min-width:768px) {
    div#announcement-bar-text-inner-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
}}

image.png.dd9af51eed78fe2a16806030555d74e2.png

#6. Use this code to Custom CSS box to turn Logo text to Image. Replace Pixabay with your logo image url.

div#announcement-bar-text-inner-id p:nth-child(2) a {
    background-image: url(https://cdn.pixabay.com/photo/2024/05/26/10/15/bird-8788491_1280.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent !important;
    display: inline-block;
    width: 100px;
    height: 70px;
}

image.png.c60d40f2096ad5ad9f9dd8ebda1fef88.png

we will have

image.png.260c38c2919eb96c4ac905fbb3c3b483.png

#6.1. To move Social Icons closer Logo, like this

image.png.b797dcef1f1e9cf0a4195c77e2745cc2.png

We can use this code to Custom CSS.

@media screen and (min-width:768px) {
  div#announcement-bar-text-inner-id {
        display: flex;
        align-items: center;
        justify-content: flex-end !important;
}
div#announcement-bar-text-inner-id p {
    margin-left: 10px;
}
}

image.thumb.png.5010c5c376a465ef1f9ff3468db4e077.png

#7. To change the Announcement Bar background, you can change the Site Style.

image.png.a3daec8a85ff2d2a58ac5e5910698b43.png

#8. To remove the Announcement Bar X Close icon, you can use this CSS code

span.sqs-announcement-bar-close {
    display: none;
}

image.png.9ac36e6992fcba80639015fae69f9599.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
  • Replies 0
  • Views 165
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.