I have created a react webpage, in that I have incorporated a Linkedin badge. Unfortunately it seems to completely over ride my own css styling for the entire page.
Is there a way around this?
This is the code I am using:
useEffect(() => {
const script = document.createElement("script")
script.src = "https://platform.linkedin.com/badges/js/profile.js"
script.async = true
script.defer = true
document.body.appendChild(script)
return () => {
document.body.removeChild(script)
}
}, [])
and the return code:
<div
class="badge-base LI-profile-badge"
data-locale="en_US"
data-size="large"
data-theme="light"
data-type="HORIZONTAL"
data-vanity="kalle-anka-55a89667"
data-version="v1"
>
<a
class="badge-base__link LI-simple-link"
href="https://se.linkedin.com/in/kalle-anka-55a89667?trk=profile-badge"
>
Kalle Anka
</a>
</div>
thanks