Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block mmjaeger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View page-resource.php
* ThingLogix Pro
* Description: Used as page template to show filtered resources using "facetwp"
* Template Name: Page Resource
* @package ThingLogix
* @author j-cons
mmjaeger / gcd_sass_script
Created Jun 24, 2016 — forked from chrisross/gcd_sass_script
This Sass (SCSS) function utilises the Greated Common Divisor (gcd) to reduce duplicate styles.
View gcd_sass_script
// Algorithm to calculate the Lowest Common Denominator
@function gcd($a, $b){
@if $b == 0 {
@return $a;
} @else {
@return gcd($b, $a%$b);
// Example Use-case:
mmjaeger / functions.php
Created Sep 28, 2015 — forked from srikat/functions.php
Wrapping Primary and Secondary Navigation in custom divs in Genesis
View functions.php
//* Wrap .nav-primary in a custom div
add_filter( 'genesis_do_nav', 'genesis_child_nav', 10, 3 );
function genesis_child_nav($nav_output, $nav, $args) {
return '<div class="nav-primary-wrapper">' . $nav_output . '</div>';
//* Wrap .nav-secondary in a custom div
add_filter( 'genesis_do_subnav', 'genesis_child_subnav', 10, 3 );
You can’t perform that action at this time.