1
Technicum
Create a block for a twitter feed?
  • 2015/6/1 7:47

  • Technicum

  • Just popping in

  • Posts: 32

  • Since: 2010/9/6 5


Hi,

I would like to add a twitter feed to my website, so i created a widget within twitter,
and pasted the code into a custom block, but now the created feed stays narrow, about
< half of the blockwidth. The code created by the twitter widgetcreator is:

<class="twitter-timeline" href="https://twitter.com/NannievdWiele" data-widget-id="604389739987341312">Tweets door @NannievdWielea>
<
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>


The block shows up as:
Resized Image



Do you guys have any experience on how to add a twitter feed to a xoops website?

2
Bleekk
Re: Create a block for a twitter feed?
  • 2015/6/1 8:48

  • Bleekk

  • Theme Designer

  • Posts: 941

  • Since: 2002/12/14


try to add a fixed with to you a-tag like
<class="twitter-timeline" width="350" ......

3
Technicum
Re: Create a block for a twitter feed?
  • 2015/6/1 9:16

  • Technicum

  • Just popping in

  • Posts: 32

  • Since: 2010/9/6 5


Quote:

Bleekk wrote:
try to add a fixed with to you a-tag like
<class="twitter-timeline" width="350" ......


Ouch! That was almost too easy
Thank you very much !

Login

Who's Online

368 user(s) are online (235 user(s) are browsing Support Forums)


Members: 0


Guests: 368


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits