Hello,
The excerpt function doesn’t work with the iframe tags if no actual content is present. So you have two ways here , either you will have to add some content to the post where you have added video like this
<iframe src=”https://www.youtube.com/embed/prbt97lQ7pk” width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe> A video about something. I should always add content after a video.
or you can create a child theme, then on the child theme copy the sidebar.php file. Open the file and you can see profitmag_sidebar_excerpt(get_the_content());
on line number 73 and 158
remove the phrase and add only the_content();
between the <?php
and ?>
that should do the trick.
If you find your issue to be solved and do not have any more queries on the topic please mark the thread resolved, from your right had sidebar.
best regards