• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Adding ellipsis to end of content on Portfolio page

Home › Community Forums › Epik Theme Support › Adding ellipsis to end of content on Portfolio page

Tagged: ellipsis, more-tag, portfolio

  • This topic has 3 replies, 2 voices, and was last updated 8 years, 5 months ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 17, 2014 at 4:24 pm #10743
    h2meyer
    Customer

    Hello,

    I would like to have the ellipsis added to the end of the content on the Portfolio page, as with other excerpts. Can you point me to the code that is stripping that out? I tried using css to insert the ellipsis, but because the “Read More” is within the <p> tags, it didn’t work.

    Thanks!

    February 17, 2014 at 4:31 pm #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.

    February 17, 2014 at 6:48 pm #10766
    h2meyer
    Customer

    Perfect, Thank you Wes!

    February 18, 2014 at 6:32 am #10772
    Wes
    Moderator

    You’re Welcome!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding ellipsis to end of content on Portfolio page’ is closed to new replies.

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2022 · Appfinite · Built With The Genesis Framework