• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Customize Post Excerpts Content limit in Genesis

Last Updated on November 12, 2018 Favorited: 0 times

Modify the Content Limit Read More Link

//* Modify the Genesis content limit read more link
add_filter( 'get_the_content_more_link', 'gk_read_more_link' );
function gk_read_more_link() {
	return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}

 

Modify the Length of Post Excerpts

//* Modify the length of post excerpts
add_filter( 'excerpt_length', 'gk_excerpt_length' );
function gk_excerpt_length( $length ) {
	return 50; // pull first 50 words
}

 

Modify the Content Read More Link

//* Modify the WordPress read more link
add_filter( 'the_content_more_link', 'gk_read_more_link' );
function gk_read_more_link() {
	return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}

 

From Essence Pro

//* Modify the Genesis content limit read more link
add_filter( 'get_the_content_limit', 'gk_content_limit' );
function gk_content_limit() {
	// Make sure we are on post page.
	if ( ! is_home() ) {
		return;
	}
	return '... <a class="more-link" href="' . get_permalink() . '">Read More...</a>';
}

 

Categories: Free Content Tags: read more

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service