Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #556

    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.

    #31920

    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,

    James

    #31921

    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 .

    Thanks

    #31922

    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

    #31923

    Thank you james

    #31924

    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

    #31925

    Did you define the external post meta value?

    #31926

    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.

    #31929

    Can you create me an admin account and send me the login details to: (Email address hidden if logged out) – I’ll have a look into it

    #31930

    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…

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

The topic ‘Replace zooming option’ is closed to new replies.