Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15975

    Hi,

    I’ve created a page with the template builder, showing some portfolio overview. But the template builder gives me only these options:

    Where can I change the template files, so that at this portfolio overview only the image + title is shown, but not an excerpt?

    Thanks.

    #89671

    In includes/loop-portfolio.php replace:

    if(!isset($avia_config['remove_portfolio_text']))
    {
    echo '<div class="post-content">';
    echo "<h1 class='post-title'>";
    echo "<a href='".get_permalink()."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".get_the_title()."'>".get_the_title()."</a>";
    echo "</h1>";

    echo '<div class="entry-content">';

    if($avia_config['portfolio_columns_iteration'] == 1)
    {
    echo '<span class="portfolio-categories minor-meta">';
    echo get_the_term_list( get_the_ID(), 'portfolio_entries', '<strong>'.__('Categories','avia_framework').': </strong><span>', '</span><span class="text-sep">/</span><span>','</span>');
    echo '</span>';

    }

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

    }
    else
    {
    $hr_class = 'hr hr_invisible';
    }

    with:

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

    echo '<div class="entry-content">';

    if($avia_config['portfolio_columns_iteration'] == 1)
    {
    echo '<span class="portfolio-categories minor-meta">';
    echo get_the_term_list( get_the_ID(), 'portfolio_entries', '<strong>'.__('Categories','avia_framework').': </strong><span>', '</span><span class="text-sep">/</span><span>','</span>');
    echo '</span>';

    }

    if(!isset($avia_config['remove_portfolio_text']))
    {
    the_excerpt();
    }
    echo '<a class="more-link" href="'. get_permalink().'">'.__('Read more &rarr;','avia_framework').'</a>';
    echo "</div>";
    echo "</div>";

    However this will affect all portfolio pages and you won’t be able to hide the post titles anymore.

    #89672

    thanks a lot, works fine for my case.

    #89673

    Glad that worked for you :)

    Regards,

    Devin

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

The topic ‘TemplateBuilder -> Portfolio overview: showing only image + title, no excerpt’ is closed to new replies.