The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting Video Into The Featured Panel
08-13-2014, 06:57 PM (This post was last modified: 08-18-2014 08:51 PM by Russell H..)
Post: #1
Inserting Video Into The Featured Panel
Basically this is controlled via Custom Fields panel in your page editor.
If you can't see a custom fields panel just go to the top of your page editor and click the "On Screen Options" tab and then from the drop down menu select "custom field" and that panel will then show up.
Method:
The way to insert video is to create a new custom field and name it "video" (exact spelling all lower case) then to the right in the "Value" field you paste in your Youtube or Vimeo (or whatever) video embed code and click save and now the video will appear in the featured panel. Make sure to change the dimensions in the embed code to 430x320px for a neat fit or if you're using the wider gallery display you can set your video size to 650px X 320px.

If you like to use a WP video embed plugin such as Viper Video Tags or Traffic Player that uses shortcode you can do so. You can also use WP-flowplayer plugin to display any video that you have uploaded to you media gallery. Just take the short_code from your plugin for the video you want to feature and paste it into the "video" Custom Field you created.

IMPORTANT: Make sure you have selected the "featured panel" page template in the page editor.

About Mobile Browser Videos
We actually arrived at a special code path inclusion that we had to implement in order for videos to show on iPhone and Android. Basically where the youtube path normally says "/v=" we have to replace with "/embed/" and that makes it work (well one of the things).

IMPORTANT:
Here's the correct mobile friendly code for the main featured panel videos:
Code:
<iframe width="430" height="320" src="http://www.youtube.com/embed/rWiKt9rbwUw?hl=en&fs=1&autoplay=1&hd=1&controls=0" frameborder="0" allowfullscreen="true"></iframe>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Inserting Video Into The Featured Panel - Russell H. - 08-13-2014 06:57 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)