Skip to content

Instantly share code, notes, and snippets.

@bajpangosh
bajpangosh / index.html
Created November 27, 2018 08:09
YouTube API - Multiple Videos on One Page
<div class="video-item">
<iframe id="video0" src="//www.youtube.com/embed/4DMGfbje7NY?enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe>
<button class="play">Play</button>
<button class="stop">Stop</button>
</div>
<div class="video-item">
<iframe id="video1" src="//www.youtube.com/embed/nJl-qVoEEJI?enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe>
<button class="play">Play</button>
<button class="stop">Stop</button>
@phillcoxon
phillcoxon / strip_visual_composer_shitcodes.php
Last active March 11, 2021 11:31
Strip Visual Composer shortcodes from posts
<?php
/*
Load selected posts, strip out Visual Composer shortcodes leaving the content intact and update the post again.
*/
require('wp-load.php');
require_once('wp-includes/functions.php');
require_once('wp-includes/shortcodes.php');
@spivurno
spivurno / gw-gravity-forms-datepicker-kayak-style.css
Last active June 26, 2020 07:04
Gravity Wiz // Gravity Forms // Kayak-style Datepicker
/**
* Gravity Wiz // Gravity Forms // Kayak-style Datepicker
* Style your Gravity Forms Datepickers like Kayak.com
*/
.datepicker-clean.ui-datepicker {
background-color: #fff;
width: 516px !important;
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1) !important;
padding-left: 20px;
position: relative;