I am also trying to use the is_home() function to make the slideshow appear only on the home page (featured image on all other pages), however the <?php if ( is_home() ) { ?>
is giving me problems because I have no idea how/where to insert it in this header file. I obviously did get the <div class="headerslider"> <?php echo do_shortcode('[sp_responsiveslider limit="-1"]'); ?></div>
in, and that works, but again, I’m ignorant on how to make this work for my site (https://www.renewedchristianfellowship.com).
Many thanks! Header.php code below…
Rachel
<?php
/**
* Title: Header template.
*
* Description: Defines header content.
*
* Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
* should be made in a child theme.
*
* @category Cyber Chimps Framework
* @package Framework
* @since 1.0
* @author CyberChimps
* @license https://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
* @link https://www.cyberchimps.com/
*/
?>
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="ie ie6 lte9 lte8 lte7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html class="ie ie7 lte9 lte8 lte7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8 lte9 lte8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[if gt IE 9]> <html <?php language_attributes(); ?>> <![endif]-->
<!--[if !IE]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="initial-scale=1.0; maximum-scale=3.0; width=device-width" />
<title><?php wp_title(''); ?></title>
<link rel="profile" href="https://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!-- IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/inc/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="full-width-container header-full-width">
<div class="headerslider"> <?php echo do_shortcode('[sp_responsiveslider limit="-1"]'); ?></div>
<div class="header-image-banner"></div><!-- banner -->
<div class="header-container">
<div class="container">
<?php do_action('cyberchimps_before_wrapper'); ?>
<div class="container-fluid">
<div id="header_nav_container">
<div class="row-fluid">
<div class="span4">
<?php cyberchimps_header_logo(); ?>
</div><!-- span4 -->
<div class="span8">
<?php do_action('cyberchimps_before_navigation'); ?>
<nav id="navigation" class="row-fluid" role="navigation">
<div class="main-navigation navbar">
<div class="navbar-inner">
<div class="container">
<?php /* hide collapsing menu if not responsive */
if( cyberchimps_get_option( 'responsive_design', 'checked' ) ): ?>
<div class="nav-collapse collapse">
<?php endif; ?>
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav', 'walker' => new cyberchimps_walker(), 'fallback_cb' => 'cyberchimps_fallback_menu' ) ); ?>
<?php /* hide collapsing menu if not responsive */
if( cyberchimps_get_option( 'responsive_design', 'checked' ) ): ?>
</div><!-- collapse -->
<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<?php endif; ?>
</div><!-- container -->
</div><!-- .navbar-inner .row-fluid -->
</div><!-- main-navigation navbar -->
</nav><!-- #navigation -->
<?php do_action('cyberchimps_after_navigation'); ?>
</div><!-- span8 -->
</div><!-- row fluid -->
</div><!-- header nav container -->
</div><!-- container-fluid -->
</div><!-- container -->
</div><!-- header container -->
</div><!--container full width -->
<div class="container">
<div id="wrapper" class="container-fluid">