• 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

Delete "Read More" in Pretty Photo Gallery

Home › Community Forums › Ally Theme Support › Delete "Read More" in Pretty Photo Gallery

Tagged: Ally theme, gallery, image, portfolio, pretty photo

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by Eric.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 19, 2013 at 4:15 pm #6659
    jasmendoza
    Customer

    Hi, Because the purpose of the Portfolio gallery in my site is only show some pictures like a gallery, I don’t want that every picture has a “Read More” link, so I would like to know the best way to take out that part in my portfolio page.

    Thanks.

    August 19, 2013 at 9:27 pm #6663
    Eric
    Customer

    Take a look in your page_portfolio.php file and edit the Read More code –

    // 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>';
    }

    ….you could probably just erase the link and text part and you’ll end up with this –

    return '';

    Then it won’t show up.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

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 © 2023 · Appfinite · Built With The Genesis Framework