Support » Themes and Templates » Thumbnail links Tanzaku theme

  • 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!!

  • The topic ‘Thumbnail links Tanzaku theme’ is closed to new replies.