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

Hover images and Videos

At first blush, it appears that you are missing a colon from your else statement. Without more info, though, I cannot tell you anything else. <?php if( has_post_thumbnail() ) : ?> <div class=”image-wrapper-hover”> <?php the_post_thumbnail( ‘large’ ); ?> </div> <?php else : ?> <?php catch_video();?> <?php endif; ?>

Add Javascript/Html into a WordPress

This plugin allows custom JS and custom CSS on a per post/page basis. https://wordpress.org/plugins/art-direction/ If you find that it is not compatible with your WP install, look for other plugins that allow custom JS and CSS. If you’re looking for a more robust solution, you can do something like the following: /* overlay-contact-form.css */ #overlayContactForm … Read more

Remove lines in video

Nothing to do with WordPress, but the line is applied via CSS on .qt-caption::after In your scss file, _typography.scss look for: .qt-caption { padding: 0.33em 0 0.7em 0; margin: 0 0 0.5em 0; position: relative; &::after { display: block; position: absolute; width: 100%; height: 2px; content: ” “; background: rgba(150,150,150,0.3); bottom: 0; } } And … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)