Have image slider display only on home page

Try this

<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package GovPress
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<!--[if lt IE 9]>
<script src="<?php echo esc_url( get_template_directory_uri() . '/js/html5.js' ); ?>"></script>
<![endif]-->
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div id="page" class="hfeed site">

    <?php do_action( 'before' ); ?>

    <nav id="site-navigation" class="main-navigation" role="navigation">
        <div class="col-width">
            <h1 class="menu-toggle"><?php _e( 'Menu', 'govpress' ); ?></h1>
            <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'govpress' ); ?></a>

            <?php wp_nav_menu( array('theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
        </div>
    </nav><!-- #site-navigation -->

    <?php if (is_front_page()){ ?> 
    <div class="headerslider">
    <?php echo do_shortcode('[sp_responsiveslider limit="-1"]'); ?>
    </div>
    <?php  } ?>

    <header id="masthead" class="site-header" role="banner">
        <div class="site-branding col-width">

            <?php if ( get_header_image() ) : ?>
                <a href="<?php echo esc_url( home_url( "https://wordpress.stackexchange.com/" ) ); ?>" rel="home">
                    <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
                </a>
            <?php endif; // End header image check. ?>
            <h1 class="site-title"><a href="<?php echo esc_url( home_url( "https://wordpress.stackexchange.com/" ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
            <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
        </div>
    </header><!-- #masthead -->

    <?php if ( is_page_template('templates/home-page.php') ) {
        get_template_part( 'templates/above', 'home-page' );
    } ?>

    <div class="col-width">
        <div id="content" class="site-content">

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)