Can I Add Mp4 to WordPress?

Adding mp4 files to your WordPress blog can be a great way to add videos that you’ve collected or created yourself. First, you’ll need to find a plugin that can do this for you. The best plugin for this purpose is VideoPress.

Once you’ve installed and activated the plugin, you’ll need to add a few lines of code to your blog’s functions.php file. Here’s what you need to do:.

1. Add the following line of code to your functions.php file:

add_action( ‘wp_enqueue_scripts’, ‘video_enqueue_scripts’);

2. Add the following line of code to your video_enqueue_scripts function:

// Add mp4 support video_enqueue_script( ‘mp4′, ‘https://codecanyon.net/item/video-to-mp4-converter/7436341′, ‘video_enqueue_type’, ‘after_header’ );

3. Add the following line of code to your after_header function:

add_action( ‘wp_print_footer’, ‘video_print_footer’);

That’s it! You now have the ability to add mp4 files to your WordPress blog. Just make sure that you add the right url to your video_enqueue_script function. In this case, you’ll need to add the following line:

‘https://codecanyon.net/item/video-to-mp4-converter/7436341′.