Skip to content

Instantly share code, notes, and snippets.

View reidelliott's full-sized avatar

Reid Burnett reidelliott

View GitHub Profile
@reidelliott
reidelliott / bs4-embed
Created October 11, 2017 18:12
Bootstrap 4 16x9 Embed
<div class="embed-responsive embed-responsive-16by9 my-4">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>
<div class="carousel-inner" role="listbox">
<?php
$i = 0; while ( $web_loop->have_posts() ) : $web_loop->the_post();
$count = $web_loop->post_count;
// $link = get_field('link');
if ( has_post_thumbnail() ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'medium' );
}
?>
<?php if ($i%15==0) { ?>
@reidelliott
reidelliott / _carousel-fade.scss
Created March 30, 2016 03:44
Bootstrap Carousel Fade