Buy me a coffee

Secondary Navigation with Social Icons/Logo

We will create a secondary navigation bar like this screenshot.Z5542283088012 2b79832c15c98456b7aa93e9b2c60834

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

Secondary Navigation Social Icons Logo2Secondary Navigation Social Icons Logo3#2. Next, add 3 texts (with links): Facebook, Instagram, Youtube.

Secondary Navigation Social Icons Logo4And Logo text + Logo link in Line 2 (we will use code to turn Logo text to Logo Image in below steps).

Secondary Navigation Social Logo5we will have
Secondary Navigation Social Icons Logo6
#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)

<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" />

Secondary Navigation Custom Style1 08 Min

#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;
}
}

Secondary Navigation Custom Style1 09 Min

we will have

Secondary Navigation Social Icons Logo7

 

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

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

Secondary Navigation Custom Style1 13 Min

#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;
}

Secondary Navigation Social Icons Logo8We will have

Secondary Navigation Social Icons Logo9Secondary Navigation Social Icons Logo10#6.1. To move Social Icons closer Logo, like this

Secondary Navigation Social Icons Logo12

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;
}
}

Secondary Navigation Social Icons Logo11#7. To change the Announcement Bar background, you can change the Site Style.

 

Secondary Navigation Custom Style1 16 Min

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

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

Secondary Navigation Custom Style1 18 Min