Home Forums Weaver Xtreme Theme YouTube Video takes up whole content width

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17763
    edhopper
    Participant

    When I embed a YouTube video, no matter what dimensions I set, the published page shows it taking up the entire content width, all the way to the sidebar. I have tried various shortcodes from <iframe> to [embed] that various forums suggest.
    It still expands to the full width w3hatever the code.

    Here is what I currently have,
    <p><iframe src=”https://www.youtube.com/embed/gFD7KGBUtKI&#8221; width=”420″ height=”315″ frameborder=”0″></iframe></p>

    I takes up more than double that width. How do i fix this?

    Thanks

    #22000
    scrambler
    Moderator

    What about just using the youtube shortcode as explains in the Add-Ons page which has a size option (percent) 🙂

    #22001
    edhopper
    Participant

    Thanks scrambler, that worked as far as the size of the video. But now the video won’t play. I just get an error message.
    I suspect I did not put in the URL correctly, Here is the line I have now:

    <p>[youtube https://www.youtube.com/embed/gFD7KGBUtKI id=videoid sd=0 percent=40 center=0 rel=0 https=1 privacy=0]</p>

    I have tried with and without “embed”.

    #22002
    scrambler
    Moderator

    You need to read the help carefully.

    you use either the url or the videoid in the id option. And you don’t need to put all the options you don’t need. so it should be

    [youtube id=gFD7KGBUtKI percent=40]

    #22003
    edhopper
    Participant

    Thanks, I understand now.  That worked
    I am a novice at codes, so the obvious often escapes me, I hesitate from eliminating things from the code 🙁

    I warned you would have a lot of questions. 😀

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.