Skip to content

Instantly share code, notes, and snippets.

View joeybab3's full-sized avatar

Joey Babcock joeybab3

View GitHub Profile
@joeybab3
joeybab3 / WordPress Bootstrap responsive embed
Last active July 8, 2019 16:10 — forked from wwdboer/WordPress Bootstrap responsive embed
WordPress Bootstrap responsive embed
/**
* Wrap embed html with bootstrap responsive embed div
*/
function bootstrap_embed($html, $url, $attr) {
if (!is_admin()) {
return "<div class=\"embed-responsive my-4 embed-responsive-16by9\">" . $html . "</div>";
} else {
return $html;
}
}
@joeybab3
joeybab3 / component-facets.css
Last active May 30, 2024 21:58 — forked from trenkwill/component-facets.css
Shopify Dawn facets price range slider with 2 handles
// Add styling to the CSS file
.facets__price input[type='range'] {
-webkit-appearance: none;
padding: 0;
font: inherit;
outline: none;
color: rgb(var(--color-foreground));
opacity: .8;
background: rgb(var(--color-foreground));