Skip to content

Instantly share code, notes, and snippets.

View AlphaBlossom's full-sized avatar

Tony Eppright AlphaBlossom

View GitHub Profile
/* Fix Admin Editor to be Full Width */
#customCSSPopup,
#customCodePopup,
#sessionRecoveryPopup,
#trackingcodePopup {
width: 90%;
left: 5% !IMPORTANT;
right: 5% !important;
margin: 0 auto !important;
}
@AlphaBlossom
AlphaBlossom / groove-video-embed-fix.css
Created August 9, 2020 19:46
Fix the embed issue with GrooveVideo's embed code. The ".groovevideo-widget-border-solid" class may change depending on widget settings, so make sure to get the correct class of the iframe's parent div and change if needed.
<style>
/* parent of iframe */
.groovevideo-widget-border-solid {
position: relative;
padding: 56.25% 0 0 0;
margin: 0;
}
/* iframe */
.groovevideo-widget-border-solid iframe {
<script>
// Add "- Select -" as first option on all <select> fields, but disabled to visitor has so choose one of the other options
$(document).ready(function(){
$('select').prepend('<option value="" disabled="disabled" selected="selected">- Select -</option>');
})
</script>
@AlphaBlossom
AlphaBlossom / moosend-clickfunnels-form-html-integration.html
Last active April 24, 2020 03:29
Moosend Form for ClickFunnels HTML Integration
<!--
1) Replace your list ID in the "form" link:
<form action="https://app.moosend.com/subscribe/REPLACE-WITH-YOUR-LIST-ID" method="post" id="ms-sub-form" onsubmit="">
2) Add your input fields - If adding more custom fields, add the line below and update information
<input type="text" name="ms-[FIELD-NAME]" id="[FIELD-ID]">
3) Once info has been updated, copy below (from <form> to </form> and everything in between) and past into ClickFunnels "Paste Web Form Code (HTML) field"
4) Don't forget to change the page redirect URL (Your next page in your funnel) in the Moosend "List Settings" inside your Mailing List
@AlphaBlossom
AlphaBlossom / js-http-redirect.js
Last active May 21, 2020 16:49
JS HTTP Redirect
<script>
// Redirect website to new URL Right Away
window.location.replace("https://google.com");
// Redirect website to new URL after 5 seconds
window.setTimeout(function(){
window.location.href = "https://www.google.com";
}, 5000);
</script>
@AlphaBlossom
AlphaBlossom / youtube-replace-video-embed-thumbnail.css
Created August 13, 2019 20:20
Video Speed Optimization - Replace Youtube Video with Thumbnail, Load Video on Thumbnail Click
.youtube-player {
position: relative;
padding-bottom: 56.23%;
/* Use 75% for 4:3 videos */
height: 0;
overflow: hidden;
max-width: 100%;
background: #000;
}
/* CSS to raise lower section #row--31911-135 up into upper section */
/* Add overflow: visible so that #row--31911-135 will be able to show outside of container */
#section--38651-177-158-119-180-119 {
overflow: visible;
}
/* Add position: relative so z-index applies and this section covers the girl's body */
#row--31911-135 {
@AlphaBlossom
AlphaBlossom / clickfunnels-backstretch-footer.html
Last active January 24, 2017 05:25
Add backstretch.js carousel to ClickFunnels
<?php
/**
*
* Javascript for Load More
* Added conditional to not display on blog home page or single post pages
* Added 'maxpage' to use in load-more.js to determine if there are no more posts
*
*/
function init_load_posts() {
// Grid Loop Query Args
add_action( 'pre_get_posts', 'be_grid_loop_query_args' );
}
add_action( 'init', 'init_load_posts' );
function be_grid_loop_query_args( $query ) {