Video in post

Posted in: Newspaper
Post count: 26

Hello!

Why, when I place a video on a post (without sidebar), it is automatically extended to full width when I dont want it. I need my own dimensions and align the video to center. I need this to look like this: http://prntscr.com/l1rp6z How do I do it?

Thank you and i apologize for my English.

Pavol

Post count: 35449

Hi,

To edit the dimension of video player click the text in the top right corner https://www.screencast.com/t/3uKzduYAZ , there you’ll see the width and height, please change “width” with “max-width”.

For center align you need to ad a custom css in Newspaper>theme panel>custom code> custom css: https://www.screencast.com/t/DJsjSiADwc
.wp-video{
margin-left: auto;
margin-right: auto;
}

See results: https://www.screencast.com/t/q4qDtQr68HxM

Thanks.

Post count: 26

Hi,

How do you upload a YouTube video to a post?? My HTML looks like this http://prntscr.com/l20ync . Likewise, I’ve changed the dimensions of the video before, but the video still spreads to the full after publishing. On other websites with other themes it works well, so I dont understand 🙁

Post count: 26

Hi,

how do you upload a YouTube video to a post? My HTML looks like this http://prntscr.com/l20ync. Likewise, I’ve changed the dimensions of the video before, but the video still spreads to the full after publishing. On other websites with other themes it works well, so I dont understand 🙁

I upload a video through the TinyMCE Advanced plugin http://prntscr.com/l21705. Does your theme have its own function? I want to insert one video, not a playlist ..

Thanks

Post count: 35449

Hi,
If you like to have one video from youtube all you have to do is to copy the link and paste it in your post.

Thanks.

Post count: 26

But I need to set the exact dimensions (width / height) of the video. I need my own dimensions and align this one video from youtube to center of the post (post is without sidebar).

Can you, please, show me exactly how you put one video in your previous example? I have another HTML code after i pasted the video to the post.

Post count: 26

Addition:In the visual editor is a video in my specified dimensions. After publishing, it is spread out over the entire post. I dont understand why ..

Post count: 35449

Hi,

Here is an example with a link from youtube, is quite bet tricky .
https://www.screencast.com/t/HN46465u7JAd
Results: https://www.screencast.com/t/I3MMhsci4tG

Step one:
Use this iframe :

<iframe class="yt_video" src="https://www.youtube.com/embed/r7-xpJE5I9A" allowfullscreen="allowfullscreen" frameBorder="0" ></iframe>

here is the tricky part: https://www.screencast.com/t/Mdm3JXTap all you need to do is to put after src="https://www.youtube.com/embed/id_video_youtube ( https://www.screencast.com/t/5fgGzpWRP )
src="https://www.youtube.com/embed/r7-xpJE5I9A"

After that you need to add a custom code in Newspaper> theme panel > custom code custom css:
The cod is this, you can change it if you wish.

.yt_video{
  width:50%;
  height:50%!important;
  margin: 0 25%;
}

https://www.screencast.com/t/6M3euQf7uyh4

Hope this will help you.

Post count: 26

Hi Calin,

really thank you very much for your efforts and patience, but it doesnt work for me. I used your iframe exactly (even with your video and also with others), put your custom css and in the post it will show me iframe of my site with error 404 – https://prnt.sc/l2hvlv

I dont think I’m doing anything wrong, if you can i send you the login information to my site and you can try it.

My website is new (https://tiptopzena.sk) and at this moment is set to “no index”. Can there be a problem in that??

Post count: 35449

Hi,

Please provide me link for the post you have set the video and some screenshot with set you have in post.

Post count: 26

Hi,

url to post: https://tiptopzena.sk/ahoj-svet/

Screenshot to visual editor: http://prntscr.com/l2jtkc
Screenshot to HTML: http://prntscr.com/l2juh1 – I dont know, why when I copy your code, it automatically itself adds quotes after publishing.

I dont set anything in the post, just off the sidebar.

Post count: 35449

Hi,

Please send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks.

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.