I would like to embed a twitter feed in my page. Using the standard twitter widget embed code works fine on the footer widget area by pasting it into a TEXT widget.
However, when I paste it into a TEXT BLOCK content area it appears fine in the back end, but when rendered it must strip out some of the code as it appears only as a link to twitter.
Here is the embed code:
<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>
Is there any way I can make this be accepted in a main page?
Thx
Hi communityenterprise,
You would need to use the regular wordpress editor and not use the advanced layout editor for that page. There is an issue with how a text block in the advanced layout editor tries to render code.
Regards,
Devin