Answer the question
In order to leave comments, you need to log in
Why is the read next button not showing in wordpress theme?
Hello! I have a test site on wordpress with the bolid theme installed . I don’t know why, but the read more buttons are not displayed, as in the picture - (you can see the link )
in the functions.php file there are such functions:
// Old Shorten Excerpt text for use in theme
function vergo_excerpt($text, $chars = 1620) {
$text = $text." ";
$text = substr($text,0,$chars);
$text = substr($text,0,strrpos($text,' '));
$text = $text."...";
return $text;
}
function trim_excerpt($text) {
return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'trim_excerpt');
function insert_prettyPhoto_rel($content) {
$pattern = '/<a(.*?)href="(.*?).(bmp|gif|jpeg|jpg|png)"(.*?)>/i';
$replacement = '<a$1href="$2.$3" rel=\'prettyPhoto\'$4>';
$content = preg_replace( $pattern, $replacement, $content );
return $content;
}
add_filter( 'the_content', 'insert_prettyPhoto_rel' );
echo vergo_excerpt( get_the_excerpt(), '260');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question