Slider only on front page
-
SOS!
How do I only set my slider on the front page? I have a purchased themed that came with a slider so I disabled it. I went into the themes header.php and inserted the sliders php “<?php wd_slider(2); ?>” at the bottom of the themes header code. The slider appears on every page header on the website. I have attached the themes header.php which includes the sliders php at the bottom.<!DOCTYPE html>
<html <?php language_attributes(); ?>><!– start deea head here –>
<head>
<?php global $data; ?>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1″><title><?php wp_title( ‘-‘, true, ‘right’ ); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″ />
<?php if($data[‘deea_favicon’]): ?>
<link rel=”shortcut icon” href=”<?php echo $data[‘deea_favicon’]; ?>” type=”image/x-icon” />
<?php endif; ?><link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<!– start deea header here –>
<div id=”menu-top-bar”>
<!– start deea navigation here –>
<div id=”nav-wrapper”>
<?php wp_nav_menu( array( ‘container’ => false, ‘theme_location’ => ‘main-menu’, ‘menu_class’ => ‘menu’ ) ); ?>
</div><!– start deea search here –>
<?php if ( $data[‘deea_top_search’] == ‘1’):?>
<div id=”search-icon”></div>
<div id=”search-box-wrap”>
<div id=”search-box”>
<?php get_search_form(); ?>
</div>
</div>
<?php endif; ?>
<!– start deea social icons here –>
<?php if ( $data[‘deea_social_media’] == ‘1’):?>
<div id=”social-bar-top” <?php if ( $data[‘deea_top_search’] == ‘0’):?>class=”nosearch”<?php endif; ?>><?php if($data[‘deea_facebook’]): ?>” target=”_blank”><i class=”fa fa-facebook fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_twitter’]): ?>” target=”_blank”><i class=”fa fa-twitter fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_linkedin’]): ?>” target=”_blank”><i class=”fa fa-linkedin fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_instagram’]): ?>” target=”_blank”><i class=”fa fa-instagram fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_pinterest’]): ?>” target=”_blank”><i class=”fa fa-pinterest fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_plus’]): ?>” target=”_blank”><i class=”fa fa-google-plus fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_youtube’]): ?>” target=”_blank”><i class=”fa fa-youtube-play fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_vimeo’]): ?>” target=”_blank”><i class=”fa fa-vimeo-square fa-2x”></i><?php endif; ?>
<?php if($data[‘deea_rss’]): ?>” target=”_blank”><i class=”fa fa-rss fa-2x”></i><?php endif; ?></div>
<?php endif; ?>
<div class=”menu-mobile”></div></div>
<br><br>
<header id=”header”>
<div class=”container”>
<!– start deea logo here –>
<div id=”logo”>
<?php if ( $data[‘deea_logo’ ]) : ?>
<h1>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>” alt=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” /></h1>
<?php else : ?>
<h1>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<?php endif; ?>
</div><?php wd_slider(2); ?>
</div></header>
The page I need help with: [log in to see the link]
- The topic ‘Slider only on front page’ is closed to new replies.