This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready(function($) { | |
'use strict'; | |
if (!Modernizr.touch) { | |
return; | |
} | |
var link = $(menu_item).children( 'a' ); | |
var sub_menu = $(menu_item).children( 'ul' ); | |
$( link ).on( 'click', function( e ) { | |
if( $(sub_menu).css('visibility') == 'hidden' ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !function_exists( 'mpress_remove_widget_titles' ) ) { | |
function mpress_remove_widget_titles( $widget_title ) { | |
if( substr( $widget_title, 0, 1 ) === '!' ) { | |
return; | |
} | |
return $widget_title; | |
} | |
add_filter( 'widget_title', 'mpress_remove_widget_titles' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Document ready function | |
jQuery( document ).ready(function($) { | |
'use strict'; | |
// Define our elements so we can cache them | |
var $masthead = $( '$masthead' ); | |
var $body = $( 'body' ); | |
// Use waypoints | |
$body.waypoint( function( direction ) { | |
if( direction === 'down' ) { | |
//do stuff you want to happen on down |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="togglevisible" data-click-target=".inner"> | |
<p>alksjdfkajsdfkaskdfj</p> | |
<div class="inner"> | |
<p>this is a paragraph</p> | |
<a href="http://google.com" target="_blank">link</a> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main id="main" class="site-main" role="main"> | |
<?php | |
// WP_Query arguments | |
$args = array ( | |
'post_type' => array( 'band' ), | |
'post_status' => array( 'publish' ), | |
'nopaging' => true, | |
'posts_per_page' => '-1', | |
'order' => 'ASC', | |
'orderby' => 'menu_order', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Permanently Redirect Entire Domain | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^example.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.example.com [NC] | |
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* mpress Theme Customizer. | |
* @package mpress | |
*/ | |
class Mpress_Theme_Customizer { | |
private $sections; | |
private $settings; | |
private $controls; |
OlderNewer