Linkedin profile plugin on web page

Asked

Viewed 879 times

3

Dear, I would like to add my Linkedin profile on my site made in HTML, I thought it was just copy the code generated in the link: https://developer.linkedin.com/plugins/member-profile, but adding it after the <body> nothing happens. Would anyone know the correct way to include?

It generates a script like this and has copy and paste on the site:

    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/xxxxxxx" data-format="inline" data-related="false"></script>

2 answers

2


But just copy it. You may have some problem due to security. In fiddle, for example, it is likely not to accept because the external content does not use SSL.

But test yourself on Tryit do W3C, for example, it works.

See with my profile example.

<!DOCTYPE html>
<html>

<body>
<script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/wurthmann" data-format="inline" data-related="false"></script>
</body>

</html>

You can try to change

src="//platform.linkedin.com/in.js"

for

src="https://platform.linkedin.com/in.js"

Or access the link https://platform.linkedin.com/in.js and copy the content of the script to have it locally and not dependent on external content. In doing this put the script in the same location as the html and call him that:

<!DOCTYPE html>
<html>
<body>
<script src="NomeDoScript.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="https://www.linkedin.com/in/wurthmann" data-format="inline" data-related="false"></script>
</body>
</html>
  • It seems to be something to do with security, but did not resolve including "https://" as indicated. This way appears only the icone of Linkedin and my name, not like the plugin. How could solve?

  • @Nexus, copy the content of the script and save it locally so it doesn’t depend on external content. I put the option in the reply too.

  • Dear, I tried this way and I couldn’t get the profile uploaded, but I will also validate your answer, because it might work for other people. Below I will also put the link from where I found the solution. Thanks for the support.

1

  • I think that would be better as a comment Nexus, because it does not solve the problem, simply creates in another way.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.