ACF Fields not responsive | WordPress.org

[ad_1]

Hi,
I have adapted a custom field called “video” for WP YouTube Lyte.

Code to get url for Video form ACF in my template used to be:

echoDivWithContent(“item2”, $row[“video”]);

which I have changed it to:

if (function_exists(‘lyte_preparse’)) {
$lyte_output = lyte_preparse($row[“video”]);
$lyte_output_cleaned = str_replace(‘httpv://www.youtube.com/watch?v=’, ”, $lyte_output);
echo ‘
‘; echo $lyte_output_cleaned; echo ”;
}

Which works nicely and it seems like the lyte-preparse functions works. However, while the videos are responsive on other post outside ACF fields, they are not responsive here when emebedded in the custom fields.

Any hint how to change this? CSS does not seem the right track?

Best, K

  • This topic was modified 4 hours, 39 minutes ago by W★.
  • This topic was modified 4 hours, 38 minutes ago by W★.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer