Jump to content

[Share] Secondary Navigation with Social Icons (Left) - Email/Phone (Right)

Recommended Posts

Posted

You can see quick demo in below screenshot.

image.png.b56e6bc140994e0e2ff13c91ea17cc25.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 Phone/Email in Line 2

image.png.32c64e4d838ad52c86f722fa6e891814.png

Next, add this URL format to Phone (remember to use your phone number)

image.png.d8b2ca0aa697c53f5c5c931c6794fc17.png

and use this email url format

image.png.63b3e5d5862c925313edd5f7a5052237.png

and we will have.

image.png.998bed5fe6f6ffb7979415cf9e02ba3f.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.ed23f21802cdbaf83c33913b90b1a82f.png

#5. Use this code to Custom CSS box to add phone/email icons before phone/email text

div#announcement-bar-text-inner-id {
  p a[href*="tel"]:before {
    content: "\f590";
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    margin-right: 5px;
}
p a[href*="mailto"]:before {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    margin-right: 5px;
    margin-left: 20px;
}
}

image.thumb.png.f17bc5b6acdfb7412bb3727a54c43437.png

we will have

image.png.d90ead20a68db7de981a0f6d689d7b33.png

#6. 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

we will have

image.png.f417f92cb8ac6d2fd4c5ebe24cdc2028.png

image.png.7caf17a0324a163282a2df7b99613da3.png

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

image.png.a3daec8a85ff2d2a58ac5e5910698b43.png

#8. To change the Email/Phone icon color, you can add color to this code

image.png.959efdc58428980a9e3e3b7dad654d93.png

#9. 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!)

  • Replies 0
  • Views 934
  • 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.