• Resolved Andrew

    (@snd26)


    My favourite shortcode that I just found out about is a default wordpress one that can turn video iframes into html 5 videos making page load much, much faster, perfect responsiveness and you can add your own css designs:
    [video src="youtube-video-url"]

    Delighted that this works in the widget areas too thanks to this visual editor, but would you know why it adds a <p></p> before and after it? I think it is supposed to be like:

    <p><div class="wp-video"></p>

    but instead it goes:

    <p></p><div class="wp-video"><p></p>

    Thanks in advance

    https://ww.wp.xz.cn/plugins/black-studio-tinymce-widget/

Viewing 1 replies (of 1 total)
  • Thread Starter Andrew

    (@snd26)

    I didn’t realise that wordpress removes p tags for all shortcodes, so I assume that has something to do with it, in which case this is more of a general wordpress question.

Viewing 1 replies (of 1 total)

The topic ‘paragraphs on [video] shortcode’ is closed to new replies.