Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Make sure you are using the Epione 1.4 version.
- Go to Appearance> Editor and select front-page.php file and find this line:
- <?php the_post_thumbnail(); ?>
- And replace it with:
- <?php
- $values = get_post_custom_values("video");
- if ( $values ) { ?>
- <div style="margin-top:15px;"><?php echo $values[0]; ?></div>
- <?php }
- else {
- echo ''. the_post_thumbnail() . '';
- } ?>
- then while editing the post, create a new custom field called "video". and in the value field paste the youtube embed code of your video, for example:
- <object width="390" height="228"><param name="movie" value="http://www.youtube.com/v/ZJzkx1GsV5o?version=3&hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ZJzkx1GsV5o?version=3&hl=en_US" type="application/x-shockwave-flash" width="390" height="228" allowscriptaccess="always" allowfullscreen="true"></embed></object>
- Always choose the width of the video to 390px.
- Update your post and the video will appear in the slider.
- P.S: Here is how you add a custom field:
- http://www.youtube.com/watch?v=wzkcmESTa0g
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement