Easing Slider Lite Plugin causes navigation to stop working
-
Hi!
I installed the Easing Slider Lite plugin to create a slider on my homepage and it works, however, when I add this code:
<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>
to activate the plugin, it causes my home navigation to stop working. I am wondering if I am putting the code in the wrong spot? Here is my header.php:
<?php /** * The header template file. * @package SeaSun * @since SeaSun 1.0.0 */ ?><!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]--> <head> <?php global $seasun_options_db; ?> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, minimumscale=1.0, maximum-scale=1.0" /> <title><?php wp_title( '|', true, 'right' ); ?></title> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> <![endif]--> <?php if ($seasun_options_db['seasun_favicon_url'] != ''){ ?> <link rel="shortcut icon" href="<?php echo esc_url($seasun_options_db['seasun_favicon_url']); ?>" /> <?php } ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> id="wrapper"> <header id="wrapper-header"> <?php if ( !is_page_template('template-landing-page.php') ) { ?> <?php if ( has_nav_menu( 'top-navigation' ) || $seasun_options_db['seasun_header_facebook_link'] != '' || $seasun_options_db['seasun_header_twitter_link'] != '' || $seasun_options_db['seasun_header_google_link'] != '' || $seasun_options_db['seasun_header_rss_link'] != '' ) { ?> <div class="top-navigation-wrapper"> <div class="top-navigation"> <?php if ( has_nav_menu( 'top-navigation' ) ) { wp_nav_menu( array( 'menu_id'=>'top-nav', 'theme_location'=>'top-navigation' ) ); } ?> <?php if ($seasun_options_db['seasun_header_facebook_link'] != '' || $seasun_options_db['seasun_header_twitter_link'] != '' || $seasun_options_db['seasun_header_google_link'] != '' || $seasun_options_db['seasun_header_rss_link'] != '' ) { ?> <div class="header-icons"> <?php if ($seasun_options_db['seasun_header_facebook_link'] != ''){ ?> <a class="social-icon facebook-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_facebook_link']); ?>"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_twitter_link'] != ''){ ?> <a class="social-icon twitter-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_twitter_link']); ?>"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_google_link'] != ''){ ?> <a class="social-icon google-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_google_link']); ?>"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_rss_link'] != ''){ ?> <a class="social-icon rss-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_rss_link']); ?>"></a> <?php } ?> </div> <?php } ?> </div> </div> <?php }} ?> <div class="header-content-wrapper"> <div class="header-content"> <div class="title-box"> <?php if ( $seasun_options_db['seasun_logo_url'] == '' ) { ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></p> <?php } else { ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img class="header-logo" src="<?php echo esc_url($seasun_options_db['seasun_logo_url']); ?>" alt="<?php bloginfo( 'name' ); ?>" /></a> <?php } ?> </div> <?php if ( !is_page_template('template-landing-page.php') ) { ?> <?php if ( has_nav_menu( 'main-navigation' ) && $seasun_options_db['seasun_header_layout'] == 'Wide' ) { ?> <div class="menu-box"> <?php wp_nav_menu( array( 'menu_id'=>'nav', 'theme_location'=>'main-navigation' ) ); ?> </div> <?php }} ?> </div> </div> <?php if ( !is_page_template('template-landing-page.php') ) { ?> <?php if ( has_nav_menu( 'main-navigation' ) && $seasun_options_db['seasun_header_layout'] != 'Wide' ) { ?> <div class="menu-panel-wrapper"> <div class="menu-panel"> <?php wp_nav_menu( array( 'menu_id'=>'main-nav', 'theme_location'=>'main-navigation' ) ); ?> </div> </div> <?php }} ?> <?php if ( is_home() || is_front_page() ) { ?> <?php if ( get_header_image() != '' && $seasun_options_db['seasun_display_header_image'] != 'Everywhere except Homepage' ) { ?> <div class="header-image"> <img class="header-img" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" /> <div class="header-image-container"> <div class="header-image-text-wrapper"> <div class="header-image-text"> <?php if ( $seasun_options_db['seasun_header_image_headline'] != '' ) { ?> <p class="header-image-headline"><?php echo esc_attr($seasun_options_db['seasun_header_image_headline']); ?></p> <?php } if ( $seasun_options_db['seasun_header_image_link_url'] != '' && $seasun_options_db['seasun_header_image_link_text'] != '' ) { ?> <p class="header-image-link-wrapper"><a class="header-image-link" href="<?php echo esc_url($seasun_options_db['seasun_header_image_link_url']); ?>"><?php echo esc_attr($seasun_options_db['seasun_header_image_link_text']); ?></a></p> <?php } ?> </div> </div> </div> </div> <?php } ?> <?php } else { ?> <?php if ( get_header_image() != '' && $seasun_options_db['seasun_display_header_image'] != 'Only on Homepage' ) { ?> <div class="header-image"> <img class="header-img" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" /> </div> <?php }} ?> <?php if ( is_home() && $seasun_options_db['seasun_display_site_description'] != 'Hide' ) { ?> <div class="header-description-wrapper"> <div class="header-description"> <h1><?php bloginfo( 'description' ); ?></h1> </div> </div> <?php } ?> </header> <!-- end of wrapper-header -->
I inserted the code after
<?php if ( is_home() || is_front_page() ) { ?>
and that stopped the navigation from working.The site I am working on is https://www.dianegress.com
I would really appreciate it if someone would show me the proper place to insert the code to fix this problem or if there is another solution!
Thank you!
Diane
- The topic ‘Easing Slider Lite Plugin causes navigation to stop working’ is closed to new replies.