Sign in

HTML Editor Removing Content Within publii-amp

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 photoTomasz Dziuda

    Hi,

    Please check this comment: https://github.com/GetPublii/Publii/issues/367#issuecomment-471542079

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #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!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.