The read more text changes, but the length doesn’t. This is annoying as I have to add all excerpts in manually every time.
]]>Simple fix, get to line 195 and replace it with this:
<?php if (has_excerpt ($post->ID)) the_excerpt(); else echo '<p>' . strip_shortcodes(wp_trim_words( get_the_content(), 20 )) . '</p>'; #this is where shortcodes get nasty ?>
No more shortcodes!
Thanks,
Steve
I try to activate link on title and thumbnail, and hide excerpt with this shortcode :
[child_pages cols=”4″ id=”4986″ thumbs=”large” more=”+ Découvrir la marque” skin=”blue” list=”false” link_thumbs=”true” hide_excerpt=”true” link_titles=”true”]
BUT the result : https://www.sttanding.com/marques/
i don’t understand why that’s doesn’t work… can you help me ?
]]>I figured I could change the ‘the_content’ in template-parts/content-single.php to ‘the_excerpt’. Which does work, however a bit differently than with the demo. Also I cannot see the green ‘Continue with reading‘ button under each post?
How can I get excerpts just like in the demo?
And thank you very much for the amazing theme!
]]>I am trying to remove excerpt text on my mobile website. The text ends up super long and dragging out the page as the padding within the text container is super bad (skinny), and I dont know where to begin in resolving this issue.
If someone could point me in the right direction that would be fantastic!
thanks
https://www.westkcmo.com
]]>it is aestheticx.com\
Thanks in advance.
]]>My theme remains this function,
# Removes tags and trailing dots from excerpt
function dp_clean($excerpt, $substr=0) {
$string = strip_tags(str_replace('[...]', '...', $excerpt));
if ($substr>0) {
$string = substr($string, 0, $substr);
}
return $string;
}
which is typically called when it fetches an excerpt, so I’m wondering if theres anyway to implement the strip_shotcodes()
function here, or somewhere else that’d fix my problem.
Thank You!
I have made a child theme for Twenty Twelve. I can’t seem to get WordPress display the excerpts when there are excerpts….
Both under “nyheter” (which is the news and blog page) and under “artister” (which is a category), it displays the full content…
I have tried to make changes to both conent.php and archives.php, but no luck..
I have also disabled all plugins and tried with twenty twelve org. theme and twenty thirteen with no luck…
Please help.
Cheers.
]]>Im trying to have a specific category to have longer excerpt OR show full posts. Like a blog.
It’s supposed to act like a news page.
Im using Twentytwelve theme as parent.
Thanks