Reply To: Set link for slider instead of call-to-action button

#2049
Anonymous
Inactive

Hello

thanks for your fast answer, this does link the image now but it doesn’t lead to the correct address (the one that is set at Theme Options > Homepage Slider > Slide URL) but to http://www.whatever.com/1
Even if it would I still miss the necessary change to then remove the call-to-action button, I did not mention that earlier though, maybe you can also provide this for me?

Here my adapted code snippet:

foreach( $slAr as $sv ){
   $n++; ?>
	<a class="read-more" href="<?php echo of_get_option('slideurl'.$sln,true); ?>">
		<img src="<?php echo esc_url($sv['image_src']); ?>" alt="<?php echo esc_attr($sv['image_title']);?>" title="<?php if ( ($sv['image_title']!='') && ($sv['image_desc']!='')) { echo '#slidecaption'.$n ; } ?>"/>
	</a>
<?php
$slideno[] = $n;
}