Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3660

    Hi,

    I don’t want the images on my pages to be clickable. I am assuming that this has something to do with lightbox…

    How can I do that please?

    Thanks

    #43217

    Hey,

    If this is just for pages, you need only to change page.php – if this modification is for all pages / posts etc on the site you’ll need to change every template file.

    Find this code in the individual template pages:

    //get preview image
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L','_preview_medium'),
    'wh' => $k_option['custom']['imgSize']['L'],
    'display_link' => array('lightbox'),
    'linkurl' => array ('XL','_preview_big'),
    ));

    change it to:

    //get preview image
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('L','_preview_medium'),
    'wh' => $k_option['custom']['imgSize']['L'],
    'display_link' => none,
    'linkurl' => array ('XL','_preview_big'),
    ));

    This will remove the links from images as the display_link is now none.

    James

    #43218

    Hi James,

    Thanks for the info. Followed your instructions, but the images are still clickable and giving a preview. I want this to change for the images on each service page only.

    Any other tips please?

    Caroline

    #43219

    Hey,

    What’s the site URL?

    Specifically I’m after the services page URL where you want to remove the link for the images – if you are using a page template this would not require a change in page.php but rather in the appropriate template file.

    James

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

The topic ‘lightbox’ is closed to new replies.