How to disappear sidebar from Wordpress blog page?

Most of the Wordpress blog has same sidebar on all pages. Sometimes bloggers want to hide or remove from blog pages, but unable to do this. The Sidebar can be hiding through just removing some functions from the pages. To hide sidebar from the pages follow the code:
Open index.php page and find the code ?
<?php get_sidebar(); ?>
And replace it by:
<?php if(!is_single()) {
} ?>
After replacing this code, your page will not display sidebar.

Featured In