Space on Embedded Videos

Posted in: Newspaper
Post count: 128

Hi,

I just want to ask if its possible to programme the theme so that there’s a single space above and below videos that are embedded on posts?

Just like this – http://travel2next.com/parkroyal-darling-harbour/

Thanks!

Post count: 23312

Hello T2N,

Unfortunately, the theme does not have such an option to change your desired spaces. If you want to have space above and below your video, when you edit your post in text view, you have to add a custom class and then using a bit of CSS to add the padding-top and padding-bottom as you like, like this -> http://screencast.com/t/JNuRhlBc -> http://screencast.com/t/LOYo6xj7Z
For my above example, the code is ->

.custom_video {
padding-top:10px;
padding-bottom:10px;
}

If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.

Thank you for the message!

Post count: 128

Hi Catalin,

I think your instruction we have to edit every posts that has video to be able to have space between the content and video, correct?

I think what we are looking is a custom code that we can use in general.
Something that will automatically add space on all the posts that has embedded videos in it and for future posts too.

Hope that clarifies what we are trying to achieve.

Thanks!

Post count: 23312

Hello T2N,

If you want to have a general code for your embedded you have to use the CSS code below and place it in Theme panel->Custom CSS area.

The code is ->

.td-post-content iframe {
margin-top:20px;
margin-bottom:20px;
}

The result you should see here -> http://screencast.com/t/zDJcLrh1wv

Please notice that is a general code that applies for all your iframe. If you have another iframes in your site, you will have the same values of the margins.

Thank you for the message!

Post count: 128

Hi Catalin,

Thanks for the help!

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