Hi there,
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 option
10 posts from 4 voices-
Posted 2 years ago #
-
Hey,
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?
Cheers,
JamesPosted 2 years ago # -
Hi James,
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 .
ThanksPosted 2 years ago # -
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:
my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);and comment it out so it looks like this:
//my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true);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
Posted 2 years ago # -
Thank you james
Posted 2 years ago # -
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
Posted 2 years ago # -
Did you define the external post meta value?
Posted 2 years ago # -
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.
Posted 2 years ago # -
Can you create me an admin account and send me the login details to: kriesi2000-dude@yahoo.com - I'll have a look into it
Posted 2 years ago # -
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...
Posted 2 years ago #
Reply
You must log in to post.














