CSS Nivo Slider links $30-250 USD I am currently using a Nivo [login to view URL] on WordPress for my site
[login to view URL]
I need to have these images linked and redirected to another website, these are the current codes. I need someone that can code the CORRECT codes to LINK each image so that when a client CLICKS on the image, it should take them to the correct page.
********CURRENT CODE on [login to view URL]
<div id="wrapper" class="<?php disable_slider(); ?>">
<div id="slider-wrapper">
<div id="slider" class="nivoSlider">
<?php $new_slider = new WP_Query('post_type=slider&showposts=7'); while($new_slider->have_posts()) : $new_slider->the_post(); ?>
<?php $slider_url = get_post_meta($post->ID, 'skyali_slider_url', true); ?>
<?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
<?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'large'); $image_url = $image_url[0]; ?>
<img src="<?php echo get_template_directory_uri(); ?>/[login to view URL]<?php echo $image_url; ?>&w=920&h=408&zc=1&q=100" alt="<?php the_title(); ?>" title="#slogan_<?php the_ID(); ?>" rel="<?php echo get_template_directory_uri(); ?>/[login to view URL]<?php echo $image_url; ?>&w=102&h=74&zc=1&q=100" />
<?php } ?>
<?php endwhile; ?>
</div><!-- #slider item -->
<?php $slider_slogan = new WP_Query('post_type=slider&showposts=7'); while($slider_slogan->have_posts()) : $slider_slogan->the_post(); ?>
<?php $slider_url = get_post_meta($post->ID, 'skyali_slider_url', true); ?>
<div id="slogan_<?php the_ID(); ?>" class="nivo-html-caption <?php disable_slider_caption(); ?>">
<?php if(!empty($slider_url)) { ?>
<h1><a href="<?php echo $slider_url; ?>"><?php the_title(); ?></a></h1>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
<h2><?php the_time('F j, Y'); ?></h2>
</div><!-- #caption -->
<?php endwhile; ?>
</div><!-- #slider-wrapper -->
</div><!-- #wrapper -->
<?php $animation = get_option('skyali_inspired_nivo_animation');
$speed = get_option('skyali_inspired_nivo_speed');
$caption = get_option('skyali_inspired_slider_caption');
?>
<script type="text/javascript" src="#"></script>
<script type="text/javascript" src="#"></script>
<script type="text/javascript">
$('#slider').nivoSlider({
controlNavThumbs:true,
controlNavThumbsFromRel:true,
<?php if(empty($animation)){ echo "effect:'random',"; } else { echo "effect:'".$animation."',"; } ?>
<?php if(empty($speed)){ echo "animSpeed:500,"; } else { echo "animSpeed:".$speed.",";} ?>
});
</script>
<?php if($caption == 'disable'){ ?><style type="text/css">.nivo-caption{display:none !important;}</style><?php } ?>
<div class="slider_spacer"></div><!-- #slider space -->
项目 ID: 1382948
关于此项目 5提案
远程项目
活跃12 年前
想赚点钱吗? 电子邮箱地址 申请类似职位 在Freelancer上竞价的好处