Podcast including video
Support Area › Forums › Epic › Podcast including video
- This topic has 10 replies, 2 voices, and was last updated 11 years, 2 months ago by Bill Robbins.
-
AuthorPosts
-
January 14, 2013 at 13:20 #8909Kim HannanParticipant
Bill:
The demo of Epic includes an image at the very top of the posting section. I would like to duplicate this look but with the video from our Vimeo page in that location.
How may we go about doing this?
Thanks much…love your work and your support,
Kim Hannan
January 14, 2013 at 14:01 #8913Bill RobbinsModeratorKim,
Great question. The large image at the top is actually just the featured image of the most recent message. The podcast archive uses a page template to add it to the site.
Do you want to have a video that stays at the top while the podcast episodes below it change or would you rather swap out the video with each new message?
Just let me know and we’ll go from there,
BillJanuary 14, 2013 at 14:06 #8914Kim HannanParticipantThe concept would be the most recent podcast would be featured at the top, with the video embedded into the top of the page where your feature image is. Then the rest of the podcasts populate below from most recent back…
Thanks
January 15, 2013 at 16:22 #8938Bill RobbinsModeratorWe can do that…it’ll just take a bit of editing. Here’s what to do:
- We’ll need to install a plugin in order to edit one of the files. Go to the Plugins section and select Add New. Search for the “WP Editor” plugin and install/activate it.
- Go to the Appearance section and select Theme Editor.
- From the list of files on your right, choose archive-podcast.php and look for this spot (line 18):
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail('primary', array('class' => 'shadow')); ?></a>
- Replace that with this:
and save your changes.
- Next edit single-podcast.php and find this spot near the top:
<?php the_post_thumbnail('podcast-single', array('class' => 'shadow')); ?>
- Replace that with this:
and save your changes.
- Next open up the “includes” folder on your right, and also the “custom-meta-boxes” folder. Inside that folder, edit the epic-meta-boxes.php file and look for this section:
$meta_boxes[] = array( 'id' => 'video_metabox', 'title' => 'Video Code', 'pages' => array( 'page','post', ), // Post type 'context' => 'side', 'priority' => 'high', 'show_names' => false, // Show field names on the left 'fields' => array( array( 'name' => __( 'Embed Code', 'organizedthemes' ), 'desc' => __( 'Paste your video embed code here.', 'organizedthemes' ), 'id' => 'video_embed', 'type' => 'textarea_code', ), ), );
and replace it with this:
$meta_boxes[] = array( 'id' => 'video_metabox', 'title' => 'Video Code', 'pages' => array( 'page','post', 'podcast', ), // Post type 'context' => 'side', 'priority' => 'high', 'show_names' => false, // Show field names on the left 'fields' => array( array( 'name' => __( 'Embed Code', 'organizedthemes' ), 'desc' => __( 'Paste your video embed code here.', 'organizedthemes' ), 'id' => 'video_embed', 'type' => 'textarea_code', ), ), );
and save your changes.
That should add in a box on your right when you’re creating a podcast where you can place the embed code for your video. Just paste it there and it will be displayed at the top of your archive and also on the single view. You can still have a featured image which will be displayed beside the older podcasts in the archive.
Have fun.
January 15, 2013 at 16:41 #8940Kim HannanParticipantGreat….this gave me the standard WP video embed box needed….Thanks.
BUT…I no longer have the fields you already built into the page, including the audio file link (for those who want the mp3 version) and sermon notes.
Looks like I need a bit of tweaking done to the styling.
Thx, KH
January 15, 2013 at 17:49 #8942Bill RobbinsModeratorKim,
Hmmm. It shouldn’t have taken out the audio and notes box. Here’s the complete code for the epic-meta-boxes.php file. Try replacing all the code in the file and see if that helps.
January 15, 2013 at 20:07 #8949Kim HannanParticipantThat did it! Thanks much.
February 28, 2013 at 11:57 #9815Kim HannanParticipantBill:
Spent some time working on the various albums’ pages and have them ready and launched. We launched a new “podcast” page featuring these albums yesterday. The albums are working great, but I suddenly have a problem with the main page that I don’t recall having when we first set this up.
The featured video at the top of the main page is now full-sized and sitting in the place of the header rather than where it sat before (to the best of my recall) which was within the body of the page, and was about 600 px wide.
Can you take a look, please? http://www.vbcmilton.org/podcasts/
Thx, KH
February 28, 2013 at 14:59 #9818Bill RobbinsModeratorKim,
You can move it down if you’d like to. Use this snippet to change this page only:
.page-id-751 .video { margin-top: 40px; }
Let me know if you have any trouble,
BillFebruary 28, 2013 at 15:50 #9819Kim HannanParticipantThat worked flawlessly, thanks.
To optimize this page, I would like to reduce the size of the video so that there is room for a sidebar at the top.
Is that workable?
Thx, KH
February 28, 2013 at 16:49 #9820Bill RobbinsModeratorKim,
You could do that though there isn’t anything built into the theme to provide content for that area. If it’s only on that one page, what you could do is create a template for that page only. Just duplicate the page-full.php file and rename it page-751.php. You can then take out the template name from the top of the file.
That page on your site will now just use this file. It’s a good way to handle pages with a unique layout that won’t be duplicated across the site (unlike a template that might be used multiple times).
Once you’ve done that, you would probably want to place this:
<?php get_template_part( 'includes/post-formats' ); ?>
in it’s own
and then create another div next to it for your sidebar content.After that, you would need a bit of styling to float the video to the left and your sidebar to the right.
If you have any trouble, let me know,
Bill -
AuthorPosts
- The topic ‘Podcast including video’ is closed to new replies.