link slide and mouse click
-
Hi!
Maybe who know how to link slide and mouse clicking on by menu?
Regards,
Igor<?php /** * slider template */ global $zAlive_options; ?> <div id="zSlider" class="container carousel slide"> <!-- Carousel items --> <div class="carousel-inner"> <div class="active item"> <?php if ( !empty( $zAlive_options['slider1_link'] ) ) { ?> <a href="<?php echo esc_url ( $zAlive_options['slider1_link'] ) ; ?>"><img src="<?php echo esc_url ( $zAlive_options['slider1_img'] ) ; ?>" alt="" /></a> <?php } else { ?> <img src="<?php echo esc_url ( $zAlive_options['slider1_img'] ) ; ?>" alt="" /> <?php } ?> </div> <div class="item"> <?php if ( !empty( $zAlive_options['slider2_link'] ) ) { ?> <a href="<?php echo esc_attr ( $zAlive_options['slider2_link'] ) ; ?>"><img src="<?php echo esc_url ( $zAlive_options['slider2_img'] ) ; ?>" alt="" /></a> <?php } else { ?> <img src="<?php echo esc_url ( $zAlive_options['slider2_img'] ) ; ?>" alt="" /> <?php } ?> </div> <div class="item"> <?php if ( !empty( $zAlive_options['slider3_link'] ) ) { ?> <a href="<?php echo esc_attr ( $zAlive_options['slider3_link'] ); ?>"><img src="<?php echo esc_url ( $zAlive_options['slider3_img'] ) ; ?>" alt="" /></a> <?php } else { ?> <img src="<?php echo esc_url ( $zAlive_options['slider3_img'] ) ; ?>" alt="" /> <?php } ?> </div> <div class="item"> <?php if ( !empty( $zAlive_options['slider4_link'] ) ) { ?> <a href="<?php echo esc_url ( $zAlive_options['slider4_link'] ) ; ?>"><img src="<?php echo esc_url ( $zAlive_options['slider4_img'] ); ?>" alt="" /></a> <?php } else { ?> <img src="<?php echo esc_url ( $zAlive_options['slider4_img'] ) ; ?>" alt="" /> <?php } ?> </div> </div> <ul class="description hidden-phone"> <li class="active"> <a href="<?php echo esc_url ( $zAlive_options['slider1_link'] ) ; ?>"><h4> <?php echo esc_attr ($zAlive_options['slider1_title']); ?></h4></a> <p><?php echo $zAlive_options['slider1_content']; ?></p> </li> <li> <a href="<?php echo esc_url ( $zAlive_options['slider2_link'] ) ; ?>"><h4> <?php echo esc_attr ( $zAlive_options['slider2_title']) ; ?></h4></a> <p><?php echo $zAlive_options['slider2_content']; ?></p> </li> <li> <a href="<?php echo esc_url ( $zAlive_options['slider3_link'] ) ; ?>"><h4> <?php echo esc_attr ( $zAlive_options['slider3_title'] ) ; ?></h4></a> <p><?php echo $zAlive_options['slider3_content']; ?></p> </li> <li> <a href="<?php echo esc_url ( $zAlive_options['slider4_link'] ) ; ?>"><h4> <?php echo esc_attr ( $zAlive_options['slider4_title'] ) ; ?></h4></a> <p><?php echo $zAlive_options['slider4_content']; ?></p> </li> </ul> </div>
if i use this code link work but slide won’t move ??
- The topic ‘link slide and mouse click’ is closed to new replies.