Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #301013

    Hi,

    When use Portfolio Gird to show my products, there is a good function that can Display Excerpt and Title below the preview image, i only want to show the Excerpt, don’t show the Title, so i choose “only excerpt”, but there is no link in the excerpt, means in the portfolio gird page, when click the excerpt, there is no link to each portfolio. But if show Title, it have links. So, my question is can i add the link to the excerpt just like the title.

    I have try to do as below, but it doesn’t work.
    Open /config-templatebuilder/avia-shortcodes/portfolio.php: and look for this line:
    $output .= “<div class=’grid-entry-excerpt entry-content’ $markup>”.$excerpt.”</div>”;
    Change it to:
    $output .= “<div class=’grid-entry-excerpt entry-content’ $markup>“.$excerpt.”</div>”;

    Best regards,

    Tommy

    #301948

    Hey Tommy!

    I didn’t test this mod but try to replace this line in /config-templatebuilder/avia-shortcodes/portfolio.php:

    
    $title_link     = apply_filters('avf_portfolio_title_link', $title_link, $entry);
    

    with

    
    $title_link     = apply_filters('avf_portfolio_title_link', $title_link, $entry);
    $excerpt      = "<a href='{$title_link}'>{$excerpt}</a>";
    

    Cheers!
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.