• Resolved zitrusman

    (@zitrusman)


    Hello.Thanks for the plugin!

    Is ist possible to add height via parameter?

    Here is an example embed code from soundcloud, where I am able to change the height. (height=”450″)
    <iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/121338399&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dcooney

    (@dcooney)

    Hi @zitrusman,
    There is not a parameter for this in the plugin but oh could do this with some CSS.

    ‘.velocity-embed iframe{ height : 450px !important; }’

    I’m away from the computer at the moment and I think the class is ‘velocity-embed’ but you might want to check.

    Let me know if this helps.

    Thread Starter zitrusman

    (@zitrusman)

    Hi @dcooney

    Thanks for the hint.

    The actual code is:

    .soundcloud-velocity .velocity-embed .fluid-width-video-wrapper,
    .soundcloud-velocity .velocity-embed iframe 
    {height: 350px !important}

    In my case: I made an extra class .soundcloud-velocity to target only soundcloud embeds. FYI. 🙂

    Plugin Author dcooney

    (@dcooney)

    Nice one!

    So cool!
    Now I just need to figure out what and how to do with eg. an extra class .soundcloud-velocity ?
    Maybe you would advise me – it would be really nice to get this done! 🙂

    Thread Starter zitrusman

    (@zitrusman)

    @chokdk Sure!

    I assigned the class .soundcloud-velocity myself. In fact the container for the Velocity shortcode.
    The theme I’m using is offering this option.

    Here is a screenshot of it:
    https://www.dropbox.com/s/pfghfc4wc2slb5f/soundcloud-velocity.jpg?dl=0

    Does it help you?
    Cheers.

    After all your kind work I am shameful to say “no, I don’t know how to do this”…. :/
    I am using the Avada theme but I am truly bad at coding/CSS stuff

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add height via parameters?’ is closed to new replies.