I need to replace the zooming option on a single post view to the link inserted in the expose "Define an external link here."
Thank you in advance.
Replace zooming option10 posts from 4 voices
I don't understand exactly what you're trying to achieve.
When you say the "zooming option" are you referring to the hover state on single posts (white with a magnifying glass)?
What do you want to replace it with?
Sorry about that, i refer to the hover state on single posts (white with a magnifying glass), i need to cancel the zooming i would like the pic to be static only or if its possible to link to the "Define an external link here." option .
Ok, there are 2 effects which setup the "zoom" state, the 1st is a background image (the magnifying glass) and the 2nd is jQuery which changes the opacity of the image to 40% so you see white and the background image.
To remove the effect, and since you want to change the link to the "Define external link here" URL, open up /js/custom.js and find this code:
and comment it out so it looks like this:
To change the link on single posts, open up single.php and find this code:
$big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L'), 'wh' => $k_option['custom']['imgSize']['L'], 'display_link' => $prev_image_link, 'linkurl' => array ('XL','_preview_big') ));
and change it to:
$external = get_post_meta($post->ID, "_external", true); $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L'), 'wh' => $k_option['custom']['imgSize']['L'], 'display_link' => $external, 'linkurl' => array ('XL','_preview_big') ));
Note: you need to define a URL, even if it is to the post URL
Thank you james
I tried the solution above but the single image still didn't direct to the "external" URL. It's just redirecting to the post URL instead. Anything im doing wrong? thanks for the help
Did you define the external post meta value?
Yes I define the external post meta value and also set the 'single image link' to 'open external resource'. When I click on the single image in a single post, it stays there that means it sends me to the same single post.
Ok it's related to the known problem with external link implementation in kriesi_build_image.php and/or kriesi_post_thumb.php - a quick post meta hack will break things so Kriesi needs to look into it...
You must log in to post.