Help with coding for Able theme
-
Hi,
I want to use the Meta Slider for my home page only and the default header for all other pages. I have added the code to a test page at the moment as follows before trying out on the home page:
<?php
echo do_shortcode(“[metaslider id=6807 restrict_to=test2]”);
?>I have the latest version of WordPress/Meta Slider and have not tried other themes.
However, On the test page, the default header is underneath the slider. Can anyone advise me where I am going wrong or help with any revisions to the Code?
The Full Header code is below:
Many thanks
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id=”main”>
*
* @package Able
* @since Able 1.0
*/
?><!DOCTYPE html>
<!–[if IE 8]>
<html id=”ie8″ <?php language_attributes(); ?>>
<![endif]–>
<!–[if !(IE 8)]><!–>
<html <?php language_attributes(); ?>>
<!–<![endif]–>
<head>
<meta name=”google-site-verification” content=”R6OQne3dl9OuWJw8LKp6-Fz03uuS0ULu3tq20E2Mjgc” />
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” />
<meta name=”viewport” content=”width=device-width” />
<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 get_template_directory_uri(); ?>/js/html5.js” type=”text/javascript”></script>
<![endif]–><?php wp_head(); ?>
</head><body <?php body_class(); ?>>
<div id=”page” class=”hfeed site”>
<div id=”site-introduction”>
<h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
<h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>
</div><!– #site-title –>
<div id=”page-liner”>
<header id=”masthead” class=”site-header” role=”banner”><?php
echo do_shortcode(“[metaslider id=6807 restrict_to=test2]”);
?><?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) { ?>
<div id=”headimg”>
” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”>
<img src=”<?php header_image(); ?>” alt=”” />
</div><!– #headimg –><?php } // if ( ! empty( $header_image ) ) ?>
<nav role=”navigation” class=”site-navigation main-navigation”>
<h1 class=”assistive-text”><?php _e( ‘Menu’, ‘able’ ); ?></h1>
<div class=”assistive-text skip-link”>“><?php _e( ‘Skip to content’, ‘able’ ); ?></div><?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
</nav><!– .site-navigation .main-navigation –>
</header><!– #masthead .site-header –><div id=”main”>
- The topic ‘Help with coding for Able theme’ is closed to new replies.