This topic has 1 reply, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #9852
     mockerself
    Participant

    When I click on the image, a larger pic appears. I want to get the effect that a viewer could jump to another page when he click on the image. Could you tell me where and how can I do it ?
    The Url is http://www.interracialpeopledating.com/how-to-judge-if-your-interracial-love-is-perfect/,
    I just want to change the right round image.

    #9950
     Abe
    Keymaster

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Change the effect when click on the image’ is closed to new replies.

Log in with your credentials

Forgot your details?