Skip to content

Instantly share code, notes, and snippets.

View alexmustin's full-sized avatar

Alex Mustin alexmustin

View GitHub Profile
@alexmustin
alexmustin / html-widget.html
Last active November 8, 2018 23:42
Course Maker Documentation - Home - Welcome widget example
<h1>Get to the Head of the Class</h1>
<p class="subhead">Lead your class with this clear, vibrant, easy-to-edit Genesis theme.</p>
<p>This theme is packed full of features and functionality to help you market your new course. The homepage layout will drive traffic to your site and engage users with your online course materials while communicating than you're an autority in your space, without actually saying that -- unless you want it to!</p>
<a href="https://thebrandidthemes.com/shop/" class="button">Buy the Theme</a>
@alexmustin
alexmustin / html-widget.html
Created November 8, 2018 23:50
Course Maker Documentation - Second Chance Welcome widget example
Take a look at this example of the Course Maker theme by brandiD, built exclusively for the Genesis Framework. We like it so much, we're going to use it to market our own Personal Branding class.
<a class="button" href="https://www.youtube.com/watch?v=YbRubFUmAtc" rel="wp-video-lightbox">Watch Video</a>
@alexmustin
alexmustin / widget.html
Created November 8, 2018 23:56
Course Make Documentation - WP Video Lightbox example
<a class="button" href="https://www.youtube.com/watch?v=YbRubFUmAtc" rel="wp-video-lightbox">Watch Video</a>

TITLE: Build your brand, build your business.

CONTENT:

@alexmustin
alexmustin / text-widget.md
Last active November 9, 2018 01:14
Course Maker Documentation - Call to Action - Gravity Forms example

TITLE:

Start building your brand for free.

CONTENT:

[gravityform id="2" title="false" description="false"]

Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.

@alexmustin
alexmustin / genesis-enews-widget.md
Last active November 9, 2018 01:15
Course Maker Documentation - Call to Action - Genesis eNews Extended example

TITLE: Start building your brand for free.

TEXT TO SHOW AFTER FORM:

<p>Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.</p>

FORM ACTION: #

@alexmustin
alexmustin / functions.php
Created December 12, 2018 20:13
WooCommerce - Custom Reviews tab content
<?php
/**
* Customize product data tabs
*/
add_filter( 'woocommerce_product_tabs', 'woo_custom_reviews_tab', 98 );
function woo_custom_reviews_tab( $tabs ) {
$tabs['reviews']['callback'] = 'show_custom_reviews_tab_content'; // Custom description callback
@alexmustin
alexmustin / custom-scripts.js
Last active January 2, 2019 21:37
Hello! Pro 1.x - Modified custom-scripts.js
/* // EQUAL HEIGHT BOXES // */
equalheight = function (container) {
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
$(container).each(function () {
@alexmustin
alexmustin / file.sql
Last active February 8, 2019 19:39
SQL - Get emails for Users who have posted bbPress Topics or Replies
/* RUN THESE SEARCHES IN THE 'wp_posts' TABLE */
/* TOPICS */
SELECT DISTINCT user_email FROM wp_users,wp_posts WHERE ((wp_posts.post_author = wp_users.ID) AND (wp_posts.post_type = 'topic') AND (wp_posts.post_status = 'publish'))
/* REPLIES */
SELECT DISTINCT user_email FROM wp_users,wp_posts WHERE ((wp_posts.post_author = wp_users.ID) AND (wp_posts.post_type = 'reply') AND (wp_posts.post_status = 'publish'))
@alexmustin
alexmustin / blocks.php
Created April 8, 2019 22:02
Hello Pro 3 - Page Template files
<?php
/**
* Hello! Pro - Gutenberg 'Blocks' page template
*
* A template to force full-width layout, remove breadcrumbs, and remove the page title.
*
* Template Name: Blocks
*
* @package Hello Pro
* @author StudioPress