I use the Twitter timeline widget, which you see below, and would like to limit the number of tweets to 5. The default is 20. The website in which it is built is designed for people with visual impairments who use screen readers. Screen readers are trapped inside the widget, and the user is forced to pick up all 20 tweets to exit. There are no instructions for changing the number on Twitter. I would be open to using other code. Thank!
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/myprofile" data-widget-id="3007449998460120999">Tweets by @myprofile</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
source
share