![]() |
Video and Image Thumbnails On Same Page
Hello,
after searching and reading the forum still didn't find a solution. I have two kinds of posts - illustrated by images and by embedded videos. There is no problem with having image thumbnail appear on the home page. There is an option in Tubular theme to display video thumbnails as well. Can we have both images and videos thumbs on same page? Is it and how it is possible? (Creating a screenshot of a video as thumbnail is not an option I'm looking for) Maybe not Agent, but other theme? Thank you. http://s13.radikal.ru/i186/1003/86/755de5772862.jpg |
You should have something like this on your home.php file:
PHP Code:
PHP Code:
|
Thank you. It's a half of road.
The code works, but you need manually resize <embed> code in "video" custom field (otherwise it shows full size of video). Also you need to add styling like float and margins inside the <embed> code. I tried to add this into *.css file, but didn't work. .video { float:left; margin: 0px 10px 5px 0px !important; padding: 2px !important; border: 1px solid #DDDDDD !important; } Here is like it looks now: http://s42.radikal.ru/i096/1003/8a/1f85dbe12f85.jpg |
can you PM me a link to your site?
|
Try adding this to your CSS:
Code:
#homepagebottom embed, #homepagebottom object { |
I've slightly changed proposed CSS code and it does work like magic:
Code:
#homepagebottom embed, #homepagebottom object { |
Glad I could help!
|
| All times are GMT -5. The time now is 11:34 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.