Streaming live at 10am (PST)

Custom social embed not working like in article


#1

Hi,

I am following this tutorial: https://webflow.com/blog/customizing-your-social-sharing-buttons-with-webflow-cms

When i directly copy the code shown in the article I am getting errors like so:

Anyone know what might be going wrong?

Thanks
Josh


#2

To begin with, that component often return warnings that you can ignore. But in this case, you have to replace with and url of a dynamic field containing an URL, and by a text. More specifically, you can let characters like <or >in the code when they’re used for anything else than an HTML tag (like <a>for example)

So start by replacing <URL> and <TEXT>by a working URL and a text to see if it works, make sure not to let the brackets.


#3

Thanks again @vincent

Cool, will ignore some of the errors. I’ve got the URLS etc working with the cms thing like so:

The only issue I am having now is if i add the onclick open window code within the article then it kills my class:

Thanks for your help as always bud! :slight_smile:


#4

I don’t understand all the red warnings… maybe try to put the code inline back, with no paragraph return.

I’m not super skilled with the onClick attributes and what it’s supposed to do. Maybe you’ll be lucky if @AlexN sees that and has a minute to PM you to help ;p


#5

Thanks @vincent - Will wait for @AlexN then :slight_smile:


#6

Hi! Could you send me you’re read only link?


#7

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.