Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Flameblade

    (@flameblade)

    I figured it out. I put the video embed into an iframe tag and setting the width to 100% worked.

    Thread Starter Flameblade

    (@flameblade)

    You can use one custom field to enter the video embed code so that in the single page you cna call it different size video.

    I tried that. Setting the embed width to 100% fixes the video at a tiny size instead of making it fill the field, the only way to make the video a certain size is to specifically write a number, but I want it to be bigger on the Single Page.

    Use any embed plugin so that we can use any size videos in any page with shortcode or php function.

    I tried several but none of them work. Some don’t even display the video at all. Any suggestions?

    ————————————

    My current setup is this: In my header.php I have this code in the body

    <body<?php if ( is_single() ) {
    echo ‘ class=”widescreen” ‘; } ?>>

    This sets the ‘widescreen’ class if it’s a Single Page

    Then in style.css:

    .video-embed {
    text-align: center;
    width: 660px;
    padding: 0px 0px 40px 0px;
    position: relative;
    left: -2px;
    }

    .widescreen .video-embed {
    text-align: center;
    width: 900px;
    padding: 0px 0px 40px 0px;
    position: relative;
    left: -2px;
    }

    This sets the field for the video. It’s wider if ‘widescreen’ is true.

    And then in the post I have this:

    <div class=”video-embed”> [embed width=660px] *VIDEO URL* [/embed] </div>

    The embed size is set to 660px because setting it to 100% displays the video in a tiny size. But I want it to be 900 if ‘widescreen’ is true.

    Thread Starter Flameblade

    (@flameblade)

    Bump for response

    Thread Starter Flameblade

    (@flameblade)

    That didn’t work, but strangely, changing the class width to 0px seems to have worked perfectly. Thank you for pointing me in the right direction.

    Thread Starter Flameblade

    (@flameblade)

    That didn’t seem to do anything.

    Thread Starter Flameblade

    (@flameblade)

    Added

Viewing 6 replies - 1 through 6 (of 6 total)