How to show a block only at front page or homepage?
1. Go to Administration » Structure;
2. Click ‘Add block’, and fill in “Add block”, and your code at “Add block”;
3. Under “Show block on specific pages”, Click “Pages on which this PHP code returns TRUE (experts only)”, and copy the folling code in the blank box: