Hi,
I created a video post and the post itself looks fine but at the frontpage where all the posts are shown in a grid layout, the youtube video url is shown at the top of the excerpt. Is it meant to be like that or can I make something so that the youtube url disappear form the excerpt?
Links added in private content.
Hey dfds,
Thank you for using Enfold.
Please add this filter in the functions.php file.
add_filter('avf_post_slider_entry_excerpt', 'avf_post_slider_entry_excerpt_mod', 10, 1);
function avf_post_slider_entry_excerpt_mod($excerpt) {
$match = preg_match("/^(https?\:\/\/)?(www\.youtube\.com|youtu\.?be)\/?(\S+)/", $excerpt, $matches);
return str_replace($matches[0] , '', $excerpt);
}
Best regards,
Ismael