Results 1 to 1 of 1
Like Tree2Likes
  • 2 Post By properjob

Thread: Responsive YouTube Video

  1. #1
    Thread Starter
    properjob's Avatar
    Join Date
    May 2011
    United Kingdom
    Thanked 0 Times in 0 Posts

    Responsive YouTube Video

    To make embedded YT videos responsive is easy (with the help of some code from, in this case), but to be able to allow a subscriber to add a video to a listing on the Vantage theme and make it responsive is a bit more difficult.

    The CSS element is easily added to style.css in the child theme.

    .responsive-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } 
    .responsive-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    The problem is that the iframe (stripped of height, and width fields) needs to be wrapped in a div, and the only place to embed a video at present, is in the 'Business Description'

    HTML Code:
    <div class=responsive-container>
    <iframe src="" frameborder="0" allowfullscreen>
    Could anyone on this forum come up with a solution that would allow this to be done, with the subscriber only needing to paste the iframe code into their listing form?

    I'm hoping so!

    talent and datboykahn like this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] YouTube video embed
    By myhero in forum Help Using JobRoller
    Replies: 2
    Last Post: June 19th, 2013, 09:31 AM
  2. Link youtube video to ad
    By ezsolutionspk in forum Help Using ClassiPress
    Replies: 2
    Last Post: April 23rd, 2013, 02:58 AM
  3. Lightbox over Youtube video
    By wagsy in forum ClassiPress General Discussion
    Replies: 0
    Last Post: January 8th, 2011, 06:21 PM
  4. Ad containing YouTube video broken
    By cloudybright in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: December 18th, 2010, 05:22 PM
  5. Using Classipress with Video Script like YouTube
    By frantv in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 14th, 2010, 02:46 AM