Multiple External links slide's picture call to action link
-
Hi all ??
I have found the code below for the multiple external links of the slide’s picture.
But I would like also to have multiple external links for the call to action link with new window but I cannot manage it to work. And if I use 2 times the function my_slide_custom_link I get a fatal error.
thanks in advance.
add_filter('tc_slide_background' , 'my_slide_custom_link',10,3); function my_slide_custom_link( $slide_image , $slide_link , $id) { if ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } elseif ( MY-IMAGE-ID == $id ){ return sprintf('<a href="%1$s" rel="nofollow">%2$s</a>', 'MY-CUSTOM-URL', $slide_image); } else{ return $slide_image; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Multiple External links slide's picture call to action link’ is closed to new replies.