Forum Replies Created
-
Done!
Thank you so much
I updated from the latest previous one.
Here is what I have on my child theme: Footer, Header, Functions and Style.css
Thanks
I’ve tried deactivating the child theme, thinking it had something to do about it but the issue remains.
I’ve tried adjusting que width by Custom CSS but the widgets aren’t where they’re supposed to be.
Here it is… http://screencast.com/t/Bp9JpKHK
Nope. I is supossed to look like this http://screencast.com/t/wTNR3TNux
When in the column with options I put 640/280 it makes it fluid
but when I change it a little bit, like 630/290 it looks like this http://screencast.com/t/PwZu9JqpVS
Thanks for your prompt answer. You guys are the best
Nevermind!
I fixed this line
$words = preg_split("/[nrt ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);Thank you for your help!
Hi there
I used this code from a similar entry, and it worked better cause now I don’t get two buttons for the posts that do have content.
The only problem is that it messes up the excerpt, it erases some letters.
Something about the graphene_trim_all_excerpt($text) function … I think
function graphene_excerpt_more($more) {
global $post;
return '… <a>ID) . '">» Read More</a>';
}
add_filter('excerpt_more', 'graphene_excerpt_more');
function graphene_new_excerpt_length($length) {
return 120; // Here you can control the length of your excerpt (word count)
}
add_filter('excerpt_length', 'graphene_new_excerpt_length');
function graphene_trim_all_excerpt($text) {
// Creates an excerpt if needed; and shortens the manual excerpt as well
global $post;
if ( empty($text) ) {
$text = get_the_content('');
}
$text = strip_shortcodes( $text ); // optional
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
$text = strip_tags($text);
$excerpt_length = apply_filters('excerpt_length', 55);
$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
$words = preg_split("/[nrt ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
if (count($words)> $excerpt_length) {
array_pop($words);
$text = implode(' ', $words);
} else {
$text = implode(' ', $words);
}
$text = $text . $excerpt_more;
return $text;
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'graphene_trim_all_excerpt');Thanks so much for your help
Thanks! It works great.
But for some reason, even though I disabled the “Show more button for Manual Excerpt”, it shows TWO “continue reading” buttons…for the posts that do have an excerpt
Any idea why?
I have this post type, named “sm-location”
and there are 31500 posts.
I need them all to be listed with a “Continue reading” button
thats why I thought maybe it could be done with a funtion in the child theme that would affect all of these types of post. even if they have no excerpt.
Sorry, I did not know about the backticks, its corrected now
Viewing 10 posts - 1 through 10 (of 11 total)
- 1
- 2
