Sunday 15 April 2012

php - Div class="clone" in html -



php - Div class="clone" in html -

i inspect element of website , notice div of top-header have duplicate.

why happened?

how remove clone , remain original div top-header?

my site

here's html:

<div id="top-header" class="original" style="visibility: hidden;"> <div id="top-header" class="cloned" style="position: fixed; top: 0px; margin-top: 0px; margin-left: 0px; z-index: 1; display: block; left: 0px; width: 1343px;">

php:

<header id="masthead" class="site-header"> <div id="top-header"> <div class="ak-container"> <div class="site-branding"> <?php if ( get_header_image() ) { ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" alt="<?php bloginfo('name') ?>"> </a> <?php } ?> </div><!-- .site-branding --> <div class="right-header clearfix"> <?php do_action( 'accesspresslite_header_text' ); ?> <div class="clearfix"></div> <?php /** * @hooked accesspresslite_social_cb - 10 */ if($accesspresslite_settings['show_social_header'] == 0){ do_action( 'accesspresslite_social_links' ); } if($accesspresslite_settings['show_search'] == 1){ ?> <div class="ak-search"> <?php get_search_form(); ?> </div> <?php } ?> </div><!-- .right-header --> <nav id="site-navigation" class="main-navigation <?php do_action( 'accesspresslite_menu_alignment' ); ?>"> <h1 class="menu-toggle"><?php _e( 'menu', 'accesspresslite' ); ?></h1> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav><!-- #site-navigation --> </div><!-- .ak-container --> </div><!-- #top-header --> </header><!-- #masthead -->

looking on js files included in site may .cloned , .original classes in jq-sticky-anything.min.js

it's jquery plugin.

moreover there var within element @ bottom of page - , it's weird:

/* <![cdata[ */

var sticky_anything_engage = {"element":"#masthead #top-header","topspace":"0","minscreenwidth":"0","maxscreenwidth":"999999","zindex":"1","debugmode":""}; /* ]]> */

maybe someone insert you.

php html css layout

No comments:

Post a Comment