PariPro theme comes with integrated twitter API. Please follow below steps to show twitter feed on your website.
- Login as administrator on your Drupal website
- Navigate to PariPro theme settings.
Home >> Administration >> Appearance >> Settings >> PariProyourdomain.com/admin/appearance/settings/paripro
- Under Social Network tab check Load twitter widget javascript.
- Navigate to: Administration >> Structure >> Blocks
admin/structure/block
- Click Add block link.
- Create a new block.
- In Block body enter your twitter feed code which I have explained below.
- Scroll down and set its region where you want to display twitter feed like Footer First / Footer Second / Footer Third / Footer Fourth and click Save block button.
Twitter Feed Code
Please follow below steps to get your twitter account's feed code. You have to use this code in Block body.
- Visit https://twitter.com and login in your twitter account.
- Go to account Settings page.
- On Settings page, click Widgets Link
- Click Create new button.
- Create a new widget and get the code. This is your twitter feed code.
- From your twitter widget code get the data-widget-id number. data-widget-id="3828319980682xxxxx.
So, your widget ID number is 38283199806821xxxx - Omit <script> element from the code as Twitter’s widgets JavaScript is already included in theme. Now replace your twitter username and widget ID number in below code.
The twitter code will be something like this:
<a class="twitter-timeline" href="https://twitter.com/DewDots" data-widget-id="38283199806821xxxx">Tweets by @DewDots</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>
<a class="twitter-timeline" href="https://twitter.com/DewDots" data-widget-id="382831998068211712" data-chrome="noheader noscrollbar transparent">Tweets by @DewDots</a>
Use this code to create a block region and show twitter feed on your website.