bfarrell4036
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Slideshow Cropping Portrait ImagesOhh no! Wow that’s a tricky one then isnt it. I appreciate your brutally honest answer though!
Forum: Fixing WordPress
In reply to: Background Video not playing when first on siteHey @_y_power it worked! Now just to figure out how to make that file writeable on the live site. Thank you so much! We just launched today and the problem just came up!
Forum: Fixing WordPress
In reply to: Background Video not playing when first on siteAnyone have any idea what I need to add to the code to mute it?
Thanks @_y_power for the tip! I didnt think it would be that as it doesnt even have sound on it anyways.
I see that I could add
<video id=”video” muted autoplay>
But not sure where to add it.
- This reply was modified 7 years, 5 months ago by bfarrell4036.
Forum: Fixing WordPress
In reply to: Background Video not playing when first on siteimport { $ } from ‘../../js/src/helpers’;
export default function init_herovideo() {
if ($(‘.page__hero’).attr(‘data-herovideo’) ) {
const $container = $(‘.page__hero’);const videoSrc = $container.data(‘herovideo’);
var $video = ‘<video class=”bigvideo-player” loop autoplay preload=”auto”><source src=”‘ + videoSrc + ‘” type=”video/mp4″></video>’;
$container.append(
<div class="video__player">${$video}</div>);
}}
To be honest, I am not a coder at all, I am learning as I go as the new Web Assistant.