Jump to content

Social Links to Announcement Bar 7.1

Recommended Posts

16 hours ago, alishaserre said:

Site URL: https://allviewimaging.squarespace.com/

Hi there,

Does anyone know of a code to add social links/icons to the announcement bar in SS 7.1?  Or create a bar/section above the header and place the social links there? Attached is a screencapture of where I'd like them to be.

My site password is scocreativeclient

Thanks in advance!

Screen Shot 2022-07-29 at 12.39.28 PM.png

I think we can add social icons in the footer and use some javascript code to append them to the announcement bar.

In addition, it is required to delete the link on announcement setting to disable the link on the entire bar

image.thumb.png.8603442c574af0b742dfd52cefdbb528.png

What is your current plan? Can you apply javascript code on your site?

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 8/2/2022 at 2:40 AM, alishaserre said:

That works! They will be Instagram, Facebook and Linkedln

If Business Plan, I think @bangank36 solution would be better.

You can add Social Block on Footer with 3 icons, then we will give the code to move it to announcement bar.

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
  • 6 months later...
On 2/21/2023 at 6:47 AM, JuiceHill said:

Hello!

Having a similar challenge right now - did you guys end up solving this issue? Thank you in advance! 🙂  

You can add a Social Block to Footer, or Header, then share site url, we can give code to move it to Announcement Bar

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
  • 10 months later...
On 1/13/2024 at 6:14 AM, alexandra_venusinpieces said:

Hi there, I'm trying to move my footer social icons to the announcement bar too. Since I'm on the Business plan, is the Javascript solution the best one to follow?

 

Site: https://www.venusinpieces.com/

Move it to right of this bar or which position?

image.thumb.png.cb7a88eb1f7077388b6226ac6264b264.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
On 1/16/2024 at 1:56 AM, alexandra_venusinpieces said:

Preferrably on the left, but still in the colored bar area

Add this code to Last Line in Code Injection > Footer

<script>
  $(document).ready(function(){
    $('footer.sections .socialaccountlinks-v2-block').insertBefore('#announcement-bar-text-inner-id p');
});
</script>
<style>
  #announcement-bar-text-inner-id p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
  @media screen and (max-width:767px) {
    #announcement-bar-text-inner-id p {
        position: static !important;
        transform: unset !important;
    }
    #announcement-bar-text-inner-id {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
}
</style>

social-icon-announcement-bar.thumb.png.add03579ddf3f6ed1c2cefd1d3dfa5b8.png

social-icon-announcement-bar2.png.7837d5315765832d73d11cbada68da0a.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
6 hours ago, tuanphan said:

Add this code to Last Line in Code Injection > Footer

<script>
  $(document).ready(function(){
    $('footer.sections .socialaccountlinks-v2-block').insertBefore('#announcement-bar-text-inner-id p');
});
</script>
<style>
  #announcement-bar-text-inner-id p {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
  @media screen and (max-width:767px) {
    #announcement-bar-text-inner-id p {
        position: static !important;
        transform: unset !important;
    }
    #announcement-bar-text-inner-id {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
}
</style>

social-icon-announcement-bar.thumb.png.add03579ddf3f6ed1c2cefd1d3dfa5b8.png

social-icon-announcement-bar2.png.7837d5315765832d73d11cbada68da0a.png

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.