Tagged: ,

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

    Hi,

    I’d like to remove the ‘read more –>’ link from portfolio items. Which line do I need to remove from where to do this?

    I’d also like to remove the link from the portfolio item title because that’s also clickable.

    Basically I just want a page with just pictures, without being able to click to their specific page.

    Thanks!

    #111145

    Hi mixedgroup,

    Kindly open wp-contentthemesvelvetincludesloop-portfolio.php and find this code (line 44-64):

    if(!isset($avia_config['remove_portfolio_text']))
    {

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

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

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

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

    }

    replace it with:

    if(!isset($avia_config['remove_portfolio_text']))
    {

    echo "<h1 class='post-title'>";
    echo get_the_title();
    echo "</h1>";

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

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

    the_excerpt();
    echo "</div>";

    }

    Hope this helps.

    Regards,

    Ismael

    #111146

    Hi Ismael,

    That worked great!

    Thanks for the fast reply.

    #111147

    Glad we could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

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

The topic ‘Remove 'read more' link from portfolio items’ is closed to new replies.