Twitter Widget Embed Issue

  • 0
  • 1
  • Problem
  • Updated 6 years ago
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: We have archived this topic as it has either reached a resolution or has become inactive.  If you believe this topic should not have been archived, please let us know, and we would be happy to review it.  You may continue to access this topic as needed fo

Homestead's SB+ GUI does not appear to support the standard Twitter widget API. This looks to be an issue with the JS processing of SiteBuilder but I'd like confirmation.

Separating JS to the _onload shell, and attempting to place it in <head> does not yield results. 

Thoughts?

The JS/HTML I am using is pasted below. 

<a class="twitter-timeline" href="https://twitter.com/MPetruccelliCO"; data-widget-id="503564463077744640">Tweets by @MPetruccelliCO</a>

<script>!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");</script>
Photo of Michael

Michael

  • 312 Points 250 badge 2x thumb

Posted 6 years ago

  • 0
  • 1
Photo of Drew N

Drew N, Alum

  • 262,826 Points 100k badge 2x thumb
Ok, Michael that is not the code I see on the site I looked at.  Which site are you working on?  If you don't mind, let's keep this to the other topic from now on.

Thanks

Drew