ACF Fields not responsive | WordPress.org
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
The page I need help with: [log in to see the link]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس