How to show video from post on the all posts page?

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

Facebook video on a post appears in a strange language [closed]

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

Vimeo video play button color function

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

Strange video appears in background on Safari only [closed]

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