Tagged: excerpt
Hello,
how can I change the excerpt of the “Featured Image Slider” ? (remove paragraph tags, add some custom HTML, …)
I tried:
function feature_image_slider_change_excerpt($text)
{
return strip_tags($text);
}
add_filter('get_the_excerpt', 'feature_image_slider_change_excerpt');
Thank you!
Best regards,
Stefan
Hey Stefan,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria
Hi Victoria,
here is the link:
http://www.rednerpult-faircom.de
Best regards,
Stefan
Hi Stefan,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? I think you should insert the excerpt manually into the corresponding field and then just show it.
What custom html do you need to add there?
Best regards,
Victoria
Hi,
Did you add the excerpt manually? If the excerpt was added manually, use the following filter.
// https://developer.wordpress.org/reference/hooks/the_excerpt/
If the excerpt is being extracted from the actual content, use this.
// https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content
Best regards,
Ismael
Hello,
thanks for your help.
I was not able to solve the problem with extracted excerpts.
So now, I use manually excerpts and I’m quite happy with the result.
For the moment. ;-)
Please close the topic!
Best regards,
Stefan
Hi Stefan,
Glad to hear that and thanks for using Enfold :)
Best regards,
Nikko