I currently have Twitter widgets as Snippets. My marketing managers can then pull a snippet onto a landing page & have their most recent twitter updates shown.
Recently I was doing something in Chrome, speed testing, and I noticed an error message from Twitter API saying that the widget I'm using is being depreciated (in march). I found the new widget twitter is using & went to create a snippet from it, but it failed. The snippet rich text editor strips all non-standard a href code, so the data-dnt & data-widget-id ---> with the twitter ID, etc are removed from the link, causing the snippet not to render.
I was really hoping to just switch out the snippets so I had to do no further work. Put the new snippet in, reapprove, no need to touch the 1250 landing pages which all have this snippet inserted.
Unfortunately that doesn't look like it will happen. So instead I can insert the widget directly into the landing page's template. This causes a problem because my templates are language based & the marketing is country based. So if I insert a widget for France on the French template, when I use it in Belgium or Canada, I'll show French tweets. That's a problem.
Does anyone have any recommendations for me? Perhaps a way to stop the Snippet Rich Text editor from formatting my widget? I'd really love to keep the same functionality I've been using for a year and half. Perhaps there's a different widget that isn't from Twitter's widget maker that is only a script such that it is compliant with Marketo formatting. It doesn't look to edit < script > tags, but because the twitter widget uses < a href> it gets formatted.
New Widget :
<**** class="twitter-timeline" data-dnt="true" href="https://twitter.com/Planon_NL" data-widget-id="341545436953325568">Tweets by @Planon_NL</a>
<****>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</****>
The parts in bold are removed, the parts in italics are intact.