Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #24042

    Hi,

    How can i disable the function of clicking on any image, including the 3 cols image under the main page?

    i do not want user to click on image and expand it in a new window

    Thanks

    Regards

    Thomas

    #122119

    Try following code mod – open up display/js/custom.js and replace:

    if(jQuery(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) $newclass = 'lightbox_image';

    if ($image.length > 0)
    {
    if(jQuery.browser.msie && jQuery.browser.version < 7) jQuery(this).addClass('ie6_lightbox');

    var $bg = jQuery("<span class='"+$newclass+" ie6fix'></span>").appendTo(jQuery(this));

    jQuery(this).bind('mouseenter', function(){
    $height = $image.height();
    $width = $image.width();
    $pos = $image.position();
    $bg.css({height:$height, width:$width, top:$pos.top, left:$pos.left});
    });
    }

    with

    if(jQuery(this).attr('href').match(/(jpg|gif|jpeg|png|tif)/)) $newclass = 'lightbox_image';

    jQuery(this).on('click', function(){
    return false;
    });

    #122120

    Hi Dude,

    Thanks for the fast reply. The file, display/js/custom.js, is located under cPanel, am i right? not the usual under WordPress-> Appearance-> Editor

    Thanks

    Regards

    Thomas

    #122121

    Hi,

    Yes, you can access it via FTP or your cpanel.

    Regards,

    Ismael

    #122122

    Hi,

    I replaced the code, however the pictures in the mainpage is still clickable

    here is the url

    http://greenrevolutionasiagroup.com/

    Thanks

    #122123

    Open up wp-contentthemesdisplayframeworkclasseskclass_display_box.php and replace

    $preview = kriesi_build_image(array('url'=>$preview,
    'height'=> $this->prev_image_array['height'],
    'width'=> $this->prev_image_array['width'],
    'lightbox'=>$lightbox,
    'link'=>$link,
    'link_url'=>$link_url
    ));

    with

    $preview = kriesi_build_image(array('url'=>$preview,
    'height'=> $this->prev_image_array['height'],
    'width'=> $this->prev_image_array['width'],
    'lightbox'=>$lightbox,
    'link'=>false,
    'link_url'=>false
    ));

    #122124

    Thanks alot!

    It solved

    Thanks

    Regards

    Thomas

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

The topic ‘Non Clickable image’ is closed to new replies.