I have a custom theme which has a footer.php file, which contains my footer.
This footer contains two YouTube videos which I have currently hardcoded into the theme template file footer.php.
What I would like to do is control which videos are displayed in the footer from the WP Dashboard.
I am not sure what is the best way to approach this.
This is my code in footer.php
<div class="row">
<div class="col-md-6">
<iframe width="240" height="170" src="//www.youtube.com/embed/abcdefg" frameborder="0" allowfullscreen></iframe>
</div><!-- /.6 -->
<div class="col-md-6">
<iframe width="240" height="170" src="//www.youtube.com/embed/hijklm" frameborder="0" allowfullscreen></iframe>
</div><!-- /.6 -->
</div><!-- /.row -->
I was thinking of replacing the video URL with some variable somehow that is editable via my dashboard.
An approach I was looking at was http://mor10.com/simple-video-embedding-with-custom-fields-in-wordpress-youtube/comment-page-1/#comment-1253601
But this seems to be based around your page being a post.
Thanks
Read more here: WordPress custom field or meta box to add data to footer