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

feed url problem

Don’t know if this is your only issue, but you’re using the_title() to build your URI. This ECHOS the title, which is not what you want. Instead, you should be using get_the_title(). I’d also urlencode the title, as Jan suggested. Your best bet is to print out the YouTube URI after you build it, then … Read more

Videos in posts are not rendered

Add this line where you want to display the video: <iframe width=”604″ height=”453″ src=”http://www.youtube.com/embed/your_video_id?feature=oembed” frameborder=”0″ allowfullscreen></iframe> replacing “your_video_id” with your id (find it in your youtube account).

Transform .wp-video to the native video player of the browser

I’ve found the right way digging through the WP documentation: https://developer.wordpress.org/reference/hooks/wp_video_shortcode/ This code seems to do the trick: function buildVideoPlayer($output, $attr) { // $output contains the default HTML string, created by the WP core // $attr is an associative array, which contains the parameters // (src, poster, preload, etc.) specified in the shortcode // The … Read more