Skip to content

Instantly share code, notes, and snippets.

View AlphaBlossom's full-sized avatar

Tony Eppright AlphaBlossom

View GitHub Profile
@AlphaBlossom
AlphaBlossom / logo-centered-navigation-menu.css
Last active March 4, 2022 16:32
Logo Centered on Navigation Menu
/**********************************
*
* Add a centered logo to the Genesis Navigation Menu
* using CSS only
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
************************************/
/*
@AlphaBlossom
AlphaBlossom / remove-woocommerce-admin-theme-support-warning.php
Last active February 7, 2022 15:35
Integrate WooCommerce into Genesis Child Theme
// Remove WooCommerce Theme Support admin message
add_theme_support( 'woocommerce' );
/* 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 {
@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 / woocommerce-move-price.php
Last active May 6, 2020 15:30
Move WooCommerce Pricing on Single Product Page
/**********************************
*
* Move WooCommerce Price on Single Product Page
*
* @author AlphaBlossom / Tony Eppright
* @link http://www.alphablossom.com
*
* Reference hook locations using woocommerce_single_product_summary hook
*
* @hooked woocommerce_template_single_title – 5
@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
<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 / 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;
}
@AlphaBlossom
AlphaBlossom / genesis-basic-header.html
Last active June 22, 2019 10:02
Genesis HTML Structure
<header class="site-header">
<div class="wrap">
<div class="title-area">
<!-- title-area content -->
</div>
<aside class="widget-area header-widget-area">
<!-- aside content -->
</aside>
</div>
</header>