Tanzaku grid view - problem with image hyperlinks

  • Started
  • Last post
  • 3 Responses
  • d_seed

    Hi there dear people - I am using the Tanzaku theme which has a 'linkforce' feature that links thumbnail images displayed in the grid view to the full version of each post. This is great if you want your thumbnails on the home page to do that. But what if I wanted to link the thumbnails to a specif page rather than 'the rest' of each post?

    My first step was to set the 'forcelink' feature to 'false' so that thumbnails wouldn't 'grab' the post permalink by default. But that also means that I cannot actually click the images in the grid view i.e. on the home page at all.

    Oddly the image hyperlink will work when I open the full post, but, as I stated, not from the thumbnails showing in the grid view on the home page.

    If the above is clear enough, I would be forever grateful for support and a possible fix for this. As an additional reference I have copied what I think is the relevant part of the 'theme function' code below;

    ----------------------------

    // check image link
    //$chk_imglink = '/(<a(?:.+?)rel="(?:lightbox[^"]*?)"(?:[^>]*?)>)'. preg_quote($matches2[0], '/') .'/';
    $chk_imglink = '/(<a(?:.+?)href="(?:.+?\.(?:jpe?g|png|gif))"(?:[^>]*?)>)'. preg_quote($matches2[0], '/') .'/';
    if ($flg_img_forcelink) {
    $grid_img = 'post_title) . '">' . $grid_img . '';
    }
    else if ( preg_match($chk_imglink, $content, $matches3) ) {
    $grid_img = $matches3[1] . $grid_img . '';
    }

    ---------------

    Please let me know if you need any additional information.

    Your help is muchly appreciated!!

    //G

  • fadein110

    just disable the permalink on the thumbnail in the theme and hard code the page you want them to go to.

  • d_seed0

    ...that would be easy for me if I was a coder :) I am rookie when it comes to CSS etc. Really battling my way through the template tweaks - should have mentioned that in my initial post! So I am totally lost at your suggestion :)

  • d_seed0

    ...still desperate for suggestions =/