Hey,
Can you post a link to your site? Are you using the latest version of the theme?
Hannah
Thread Starter
ilinus
(@ilinus)
Yes, I believe I use the latest version. In the firts post, Romantic France project, I used the more tag and the text breaks correctly but no …Read more link shows. In the second post, Ferry to my son, I haven’t used the tag and the text breaks automatically and the link shows. I want to use the tag to make sure that the rows of text always are the same and thereby the gallery posts always remains the same height.
http://wp.linusersson.com/
Linus
Hey,
The way that the excerpt adds read more links is when the excerpt is being built while pulling words from the content.
When you set a custom excerpt or read more you are defining and controlling the excerpt and thus the read more is not added because wordpress never goes through the process of building an excerpt. To add a read more on a custom excerpt you would need add functionality for it in a child theme. (worth noting premium version has options for this built in).
You can use css like this to give the content a “min-height” and thus making each align with another regardless of the lines of text:
#kad-blog-grid .blog_item .postcontent {
min-height: 200px;
}
To use a child theme and add a read more to all custom excerpts the function you would add would look like this:
function prefix_custom_excerpt_more( $excerpt ) {
$excerpt_more = '';
if( has_excerpt() ) {
$excerpt_more = '… <a class="kt-excerpt-readmore" href="' . get_permalink() . '">Read More</a>';
}
return $excerpt . $excerpt_more;
}
add_filter( 'get_the_excerpt', 'prefix_custom_excerpt_more' );
Kadence Themes