Anthony of Padua 2019 - Grand Rapids, MI

C & S - Homepage - Change how the YouTube Video works

Assigned to
Kyle Brown, Web Development at Diocesan Kyle B.
Notes
I did this for the school, but you need to bring it over to the Church and make it permanent for the school. 

They have a new video that is nearly 1.2GB, and since I don't want them uploading that to the site and being loaded on the homepage of all places, I added a plugin that can hide that crap, but for it to work I needed to put it in a shortcode, so I changed the ACF for it to be text instead of oEmbed and then I changed the template for Homepage_Video to be
<?php echo do_shortcode("[embedyt]" . get_field('home_video') . "[/embedyt]"); ?>
instead of
the_field('home_video');
now it doesn't show the related videos and they can change the youtube video in that text field.

So in conclusion, 
  1. Change the home_video ACF from oEmbed to Text
  2. Change the code here DPI School Child Theme: home-video.php (template-parts/homepage/home-video.php) to reflect the shortcode change above.
  3. do this for the church side too.
Fixed Photos

Comments & Events

Kyle Brown, Web Development at Diocesan
I brought all the changes over to the church. I'm not sure what you mean by make it permanent?
Kyle Brown, Web Development at Diocesan
Kyle Brown completed this to-do.
Cody Armock, Web Content Specialist at Diocesan
Kyle Brown, Web Development at Diocesan Kyle , by make it permanent. I mean basically don't overwrite it or bring it down to your local save.