Support » Plugin: Featured Video Plus » Can’t make the videos responsive on Loop

  • Resolved carinalves

    (@carinalves)


    Hi,

    Once I installed the plugin, it didn’t work out of the box in the theme post loop, so I added a line or two of code, but I can’t for the love of god get the videos to be responsive…

    here’s the code:

    
    <div class="post-img-wrapp">
         <a href="<?php echo esc_url( get_permalink() ); ?>">
                  <?php if (has_post_video ()) {
                      echo get_the_post_video( $post_id, 'medium');
                  } else {
                      echo basel_get_post_thumbnail( 'large' );
                  } ?>
         </a>
    </div>
    

    What can I do?

    Thanks in advance!

    • This topic was modified 7 months ago by  carinalves.
    • This topic was modified 7 months ago by  carinalves.
    • This topic was modified 7 months ago by  carinalves.
Viewing 1 replies (of 1 total)
  • Hi again,

    I eventually solved the issue by wrapping the video in a new class (I was inspired by this fiddle). Hope it helps someone who runs into the same problem.

    Thanks anyway.

    • This reply was modified 6 months, 4 weeks ago by  carinalves.
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t make the videos responsive on Loop’ is closed to new replies.