I copied the code from this link by giving company name and clicking the Get Code button. It generated the code given below
It is not working locally because it is using protocol relative URL. If you change src="//platform.linkedin.com/in.js" to src="https://platform.linkedin.com/in.js" it will work.
src="//platform.linkedin.com/in.js"
src="https://platform.linkedin.com/in.js"