Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

HTML Editor Removing Content Within publii-amp

  • #2148
    Avatar photo[anonymous]

    I’m trying to add some code using Google’s AMP guidelines specifically embedding Twitter, Instagram and YouTube. I’m trying to add code inside <publii-amp></publii-amp> but the editor keeps removing it.

    Example:

    <publii-amp>
    <amp-twitter
    width=”375″
    height=”472″
    layout=”responsive”
    data-tweetid=”885634330868850689″
    >
    </amp-twitter>
    </publii-amp>

    The amp stuff always gets removed. Anything else though like <p> strong  etc or plain text remain.

    I’m just following the instructions from here: https://amp.dev/documentation/components/amp-twitter/

    Any guidance is greatly appreciated!

    #2192
    Avatar photo[anonymous]
    #2195
    Avatar photo[anonymous]

    IT WORKS! OMG! Thank you so much.

    Hopefully in a future version we can have Twitter/Instagram embeds just like the Youtube videos – which has auto output for amp.

    Again thanks!!!