Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19968

    Hi,

    I’ve build pages with portfolio entries for an overview as described in the following discussion. For example for “Brands” or “Press” overview:

    http://www.kriesi.at/support/topic/how-to-spare-out-articles-from-regular-archive

    So, when you go to the page “Brands” you see an overview of all brands: http://www.planet-upcycling.de/plup-laden/marken/

    The pictures are linked to a single page and so I have for each brand one page. But it seems to happen often that people don’t click on the picture but on the headline or the “read more” link. This will lead them to the portfolio entry where they see only the picture and then they are lost. Is there any possibility to link the Headlines and the “read more” link also to the referring page or wouldn’t that make sense?

    Thanks for your help.

    Frank

    #105789

    Hi!

    Open up includes/loop-portfolio.php and replace:

    echo $slider->display($forceSmall);

    with:

    echo $slider->display($forceSmall);

    $linktarget = '';
    $slides = avia_post_meta(get_the_ID(), 'slideshow');

    if(!empty($slides[0])){
    $linktarget = avia_get_link($slides[0], 'slideshow_', '', get_the_ID());
    }

    if(empty($linktarget)){
    $linktarget = get_permalink();
    }

    and:

    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";

    with:

    echo "<a href='".$linktarget."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";

    and:

    echo '<a class="more-link" href="'. get_permalink().'">'.__('Read more  &rarr;','avia_framework').'</a>';

    with:

    echo '<a class="more-link" href="'. $linktarget .'">'.__('Read more  &rarr;','avia_framework').'</a>';

    Best regards,

    Peter

    #105790

    Done. Works. Thanks a lot Peter. What is in case of further updates? With 1.8 the loop portfolio.php has changed. Do I have to do the operation again when newer updates will overwrite that file?

    Regards,

    Frank

    #105791

    Hey Frank,

    Yes, you’ll need to re-add in the changes.

    Regards,

    Devin

    #105792

    Thank you Devin.

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

The topic ‘How to connect link "read more" and headlines from portfolio entry with page?’ is closed to new replies.