Home Forums General Issues facebook embed acf


facebook embed acf

  • hi in a post I create a video field with acf embed to embed a video from facebook but does not take me the full width of the container.

    code single.php

    <div class=”video-container”>
    <?php echo get_field(‘video_content’) ; ?>

    css code

    .video-container {
    position: relative;
    padding-bottom: 45.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    .video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    someone knows how to solve
    thank you

Viewing 1 post (of 1 total)

The topic ‘facebook embed acf’ is closed to new replies.