Extend file format support for post thumbnails
Extend file format support for post thumbnails
Extend file format support for post thumbnails
Optimize blog that serves hundred of images and videos
Lazy load video block while keeping autoplay
From your array, you should get the Media ID of the videos. If you have the media ID, it will be as listed below: // Let’s say you have the media ID $meta = filesize( get_attached_file( $attachment_id ) ); By using the size format function you can list the size echo size_format($meta); Update according to … Read more
For a post format, you can refer to this link https://codex.wordpress.org/Post_Formats To show videos on posts page,just modify the excerpt filter and display the excerpt. Add following code in functions.php function custom_wp_trim_excerpt($text) { $raw_excerpt = $text; if ( ” == $text ) { $text = get_the_content(”); // Original Content $text = strip_shortcodes($text); // Minus Shortcodes … Read more
I am sorry I haven’t realised I made a compress. Actually right now I found a solution. It was in bad server where I hosted a video. As I tried to use jwplayer for hosting, it works absolutely perfect. 🙂
It’s a localization problem, Facebook is loading a who-know-where javascript sdk to embed the video. Switch to code view inside your wordpress editor and search for the js include url, similar to https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5 this, and change whatever string appears instead of en_US with en_US. Where the string is located depends on how you are doing … Read more
I did a couple of things to fix this issue… I added a function that adds a class to my Vimeo iFrame: https://wp-time.com/add-custom-class-to-wordpress-iframe-video/ function video_class($html) { if (preg_match(‘/(vimeo.com)/’, $html)) { return str_replace(‘<iframe’, ‘<iframe class=”video”‘, $html); } else { return $html; } } add_filter(’embed_oembed_html’, ‘video_class’, 99, 4); I implemented some JS to change the properties of … Read more
There is only one video file on your page: http://popplekharlamova.com/wp-content/uploads/2016/09/PK_VIDEO.mp4. It is being loaded on all browsers. It’s hidden in this CSS-block as a background-image: <style id=”thb-app-inline-css” type=”text/css”> .page-id-282 #wrapper div[role=”main”] {background-color: !important;background-image:url(http://popplekharlamova.com/wp-content/uploads/2016/09/PK_VIDEO.mp4) !important;background-repeat: !important;background-attachment: !important;background-position: !important;background-size: !important;}.footer {background-color:#d60000 !important;background-image:url(http://popplekharlamova.com/wp-content/uploads/2017/05/BACK.jpg) </style> Delete it from there and you will be fine if you don’t have the … Read more
Not sure what type of smartphone but here is how I do it with my Iphone with the WordPress app. You can create a new post and add media to it by tapping the film strip icon and selecting the video you wish to upload. Now it will compress it and upload it to your … Read more