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

    Is it possible to set the excerpt as a link, like the title, too?

    Cheers,
    Markus

    #218579

    Hi der_mueller!

    Edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code on line 412:

    $output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".$excerpt."</div>" : '';
    

    Replace it with with this code:

    $output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false))."><a href='{$title_link}' title='".esc_attr(strip_tags($title))."'>".$excerpt."</a></div>" : '';
    

    Add this on Quick CSS to change the text color of the excerpt:

    .grid-entry-excerpt.entry-content a {
    color: gray;
    }

    Regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Portfolio grid excerpt as link’ is closed to new replies.