how add formatting to a video object added using a shortcode
-
How do I add borders and a margin around a videopress video added with shortcodes?
(I have the videopress upgrade)I can see how to change the width / height of an embedded video:
[wpvideo 6nd4Jsq7 w=640 h=350]I know how to add borders and margins to images by inserting
style="margin-top:0;margin-bottom:48px;border:3px solid black;"but I can’t see how to do this with a videopress video.
Anyone know how to add formatting to an object added using a shortcode?
The blog I need help with is: (visible only to logged in users)
-
You can enclose the shortcode in a div with appropriate style properties and values. But since you have the Custom Design upgrade, it’s better to change the styling in the CSS editor.
-
Thanks very much. Hadn’t used div tags before but they worked fine. Didn’t try the css editor as that is a step for which I am not quite ready.
Marking as solved.
(note: the adding of borders did not work as expected, but I don’t think that was the fault of the div tags. So will make that a separate topic.)
-
You’re welcome.
You can link to the post or page in question, describe exactly how you’d like the borders to look like, and I can show you how to do it, both in the Text editor and the CSS editor. -
I had to test a bit to understand the problem I mention, but I have now described it here:
https://en.forums.wordpress.com/topic/unexpected-embedded-video-margins
- The topic ‘how add formatting to a video object added using a shortcode’ is closed to new replies.