Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #903290

    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.

    #904586

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.