Please refer to the first part of this tutorial titled: Wordpress Tutorial: how to replace the header image with a slider

 

example-1) Restore the site-title and tagline, edit header.php(inside the child-theme) and paste the following code:

<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>

just after the site description. Note the highlighted line below:

<body <?php body_class(); ?>>
<div id="wrapper" class="hfeed">
<div id="header">
<div id="masthead">
<div id="branding" role="banner">
<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
<<?php echo $heading_tag; ?> id="site-title">
<span>
<a href="/<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
</span>
</<?php echo $heading_tag; ?>>
<div id="site-description"><?php bloginfo( 'description' ); ?></div>
<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>
<?php
// Compatibility with versions of WordPress prior to 3.4.

Sample screenshot:

wp-tutorial-tut4-image1

example-2) Now let us move the slider / slideshow below the navigation menu. Paste the code:

<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>

just before the closing of the header-tag (refer below):

</div><!-- #access -->
</div><!-- #masthead -->
<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>
</div><!-- #header -->
<div id="main">

sample screenshot:

wp-tutorial-tut4-image2

example-3) We can even place it in our footer:

Copy footer.php from parent-theme into child-theme. Edit and paste the slider's php code just a couple of lines just after the beginning of footer.php file as follows: (note highlighted code below):

<?php
/**
* Template for displaying the footer
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
</div><!-- #main -->

<div id="footer" role="contentinfo">
<div id="colophon">
<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>

<?php
/*
* A sidebar in the footer? Yep. You can can customize
* your footer with four columns of widgets.
*/
get_sidebar( 'footer' );
?>

sample screenshot:

wp-tutorial-tut4-image3

The above technique can be used to add EasingSlider slider to any page on your wordpress website.

Just edit the correct file and paste the code where it needs to be.

Enjoy!

You have no rights to post comments