Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How to Remove Spacing Around Videos? Plus Shortcode + tips that work for me

$
0
0

Replies: 0

The Iframes Vitaly is a great plugin, but it does leave large spaces above and below Bitchute videos on mobile.  (The Bitchute videos look good on desktop and tablet, and Youtube videos look good in all formats.)

Does anyone know the code to remove the space around the Bitchute videos?

Here is my code I use:

[iframe src=”https://www.bitchute.com/embed/SZumXNjstyAq/” width=”500″ height=”280″]

[iframe src=”https://www.youtube.com/embed/TBud7Kug9fc” width=”500″ height=”280″]

–—

Also, as tips for anyone having problems:

HOW TO MAKE THE SHORTCODE

Clip the identifying snippet from Youtube or Bitchute videos, add it to the shortcode, and make sure the word “embed” is used instead of “video.”  For example:

https://www.bitchute.com/video/SZumXNjstyAq/ becomes–
[iframe src=”https://www.bitchute.com/embed/SZumXNjstyAq/” width=”500″ height=”280″]

https://www.youtube.com/watch?v=TBud7Kug9fc becomes —
[iframe src=”https://www.youtube.com/embed/TBud7Kug9fc” width=”500″ height=”280″]

VIDEOS DON’T DISPLAY

Videos won’t show in editing display. Save the page and view from public view.

A WRONG VIDEO DISPLAYS:

If you keep getting a video that says “Trailer”, check and see if you have pasted any type of a link in the shortcode instead of straight text (clipping the snippet can do that).

YOUTUBE REFUSES TO DISPLAY VIDEO

Sometimes Youtube refuses to display the video, and gives some type of excuse about “posting twice on the same site” (heard of shadowbanning?).

I have been able to use this code the HTML page to get the videos to post:

<iframe width=”500″ height=”280″ src=”https://www.youtube.com/embed/TBud7Kug9fc&#8221; frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>

HOW TO CENTER VIDEOS

You can center the shortcode in the editor, or add this code in HTML before the iframe code: 

<p style=”text-align: center;”>


Viewing all articles
Browse latest Browse all 59525

Trending Articles