Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #947

    Well, the title of this post may not be exactly to the point but I couldn’t come up with anything more appropriate :)

    What I’m trying to achieve is make the 4 thumbs on the mainpage clickable like the title below them (same target)

    At the same time I’d like to make the title below the thumb on the portfolio page clickable.just like the thumb above the title (also same target).

    At the moment the mainpage and the portfolio page behave contrarious. On the mainpage the title is a link wheras on the portfolio page the thumb is a link. I’d like to behave both pages the same way since I have taken out the excerpt as well as the “Read more” buttons.

    To illustrate what I’m talking about, I have uploaded some screenshots.

    http://cl.ly/cfab620d1ff9c8d2b6d8

    http://cl.ly/7d86431b35882d9fdc9f

    I tried to install this behaviour in template_portfolio.php and index.php but didn’t succedd :(

    Help would be much appreciated. Thanks!

    #33450

    For the first screenshot: Replace following code in kclass_display_box.php located in the framework folder.

    echo $preview;
    echo'<h3><a href="'.$page_link.'">'.get_the_title().'</a></h3>'."n";

    with:

    echo '<a href="'.$page_link.'">'.$preview.'</a>';
    echo'<h3><a href="'.$page_link.'">'.get_the_title().'</a></h3>'."n";

    For the second screenshot replace following in template_portfolio.php:

    echo $prev_image;
    echo "<h3 class='name_sort'>".get_the_title()."</h3>";

    with:

    echo $prev_image;
    echo "<a href=".get_permalink()."><h3 class='name_sort'>".get_the_title()."</h3></a>";

    The Dude

    #33451

    Outstanding support! And at lightning speed, too…

    Worked – of course – like charm.

    Thanks a bunch!

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

The topic ‘How to generate title-/thumb-links’ is closed to new replies.