Reply To: Adding ellipsis to end of content on Portfolio page

Homepage Community Forums Epik Theme Support Adding ellipsis to end of content on Portfolio page Reply To: Adding ellipsis to end of content on Portfolio page

#10745
Wes
Moderator

    Look for something like this in your page_portfolio.php template file (inside your theme folder) –

    // Custom Read More link
    add_filter( 'excerpt_more', 'portfolio_read_more_link' );
    add_filter( 'get_the_content_more_link', 'portfolio_read_more_link' );
    add_filter( 'the_content_more_link', 'portfolio_read_more_link' );
    	function portfolio_read_more_link() {
    		return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
    }

    That code adds the Read More button (which is usually how I think it’s done in Genesis). You could add it in right before the hyperlink code starts…..like this –

    // Custom Read More link
    add_filter( 'excerpt_more', 'portfolio_read_more_link' );
    add_filter( 'get_the_content_more_link', 'portfolio_read_more_link' );
    add_filter( 'the_content_more_link', 'portfolio_read_more_link' );
    	function portfolio_read_more_link() {
    		return '...<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
    }

    and that would have it show up at the end of the text.