Hello,
Please add this code to sweetdate-child/functions.php and the kleo_img_rounded_icon shortcode will accept a link attribute to set like [kleo_img_rounded_icon src=”http://image_link” link=”http://link to another page”]
COPY CODE
function kleo_img_rounded( $atts, $content = null ) {
extract(shortcode_atts(array(
'src' => '',
'class' => '',
'link' => ''
), $atts));
if ($link) {
$data= 'href="'.$link.'"';
}else {
$data = 'data-rel="prettyPhoto[gallery1]" href="'.$src.'"';
}
$output = '<div class="circle-image '.$class.'">';
$output .= ' <a href="'.$src.'" class="imagelink" '.$data.'>
<span class="overlay"></span>
<span class="read"><i class="icon-'.apply_filters('kleo_img_rounded_icon','heart').'"></i></span>
<img src="'.$src.'" alt="">
</a>
</div>';
return $output;
}
add_shortcode('kleo_img_rounded', 'kleo_img_rounded');
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.