Jump to content

LinkedIn "follow company" code not working?

Recommended Posts

I want to add a "follow us on LinkedIn" button - not just a link to a LinkedIn page, but a button that actually causes people who are logged in to LinkedIn to begin following us. There's custom code for this published by LinkedIn: https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/plugins/follow-company-plugin

In Squarespace (Bedford template) I add an HTML block, and the code displays in the block, rather than the button. 

The code is written correctly, because I tested it in HTML blocks on other sites I manage in Wix and Squarespace and it works there. 

Any idea how to get this up and running in Squarespace?

Link to comment
  • Replies 2
  • Views 1k
  • Created
  • Last Reply

Hey Alex, sounds like you have "Display Source" checked at the top right in your code block. This will display the actual code instead of running it. 

Hey there, my name is Will and I help Squarespace designers and developers with my plugins, tutorials, and my Code Curious Membership
  
I would be happy to answer any questions you have about Javascript, CSS, or the meaning of life  - I'm an expert in 2 of these. 

Youtube | Website

Link to comment
58 minutes ago, WillMyers said:

Hey Alex, sounds like you have "Display Source" checked at the top right in your code block. This will display the actual code instead of running it. 

D'oh! Thanks! I'd used code blocks before and never noticed that because it didn't turn on. Looks like when I toggle the code type dropdown menu (HTML, javascript, etc.) "display source" pops on. 

Link to comment

Archived

This topic is now archived and is closed to further replies.

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