Skip to content

Instantly share code, notes, and snippets.

@natejones
natejones / index.php
Created May 4, 2015 18:19
WPDS text over images
<?php
/**
* Index
*
* Standard loop for the front-page
*
* @package WordPress
* @subpackage Foundation, for WordPress
* @since Foundation, for WordPress 1.0
*/
@natejones
natejones / columbia-accordions
Last active August 29, 2015 14:13
Columbia Accordions
<h3 id="courses">Courses:</h3>
<dl class="accordion" data-accordion="">
<dd class="accordion-navigation"><a href="#name-name">Name Name</a>
<div class="content" id="name-name">
</div>
</dd>
</dl>
@natejones
natejones / registration-success
Last active February 11, 2024 06:28
Registration Success message
<!-- formstack submit redirect to same page with #success on the end -->
<!-- This goes at the top of the content -->
<div class="alert-box success radius" data-alert="" id="success" style="display: none;">Success! Thank you for registering for Open House! <a class="close" href="#">&#215;</a></div>
<!-- this goes anywhere -->
<!--#protect
<script type="text/javascript">
if(window.location.hash) {

Keybase proof

I hereby claim:

  • I am natejones on github.
  • I am natejones (https://keybase.io/natejones) on keybase.
  • I have a public key whose fingerprint is 1AEF ABCB B4C7 9802 336E DC33 B3A6 2EED E481 2880

To claim this, I am signing this object:

@natejones
natejones / WordPressCustomPostType
Created February 13, 2014 13:22
WordPress Custom Post Type
//***********************
//
// CREATE CUSTOM POST TYPES
//
//***********************
/* Custom Post Types */
/* Bio */
@natejones
natejones / WordPressCustomUI
Created February 13, 2014 13:20
WordPress Custom UI
//***********************
//
// CUSTOMIZE UI
//
//***********************
// remove some metaboxes
function remove_post_custom_fields() {
remove_meta_box('postexcerpt', 'post', 'normal'); // removes excerpt metabox
@natejones
natejones / WordPressCustomWYSIWYG
Created February 13, 2014 13:18
Customize WordPress WYSIWYG
// customize WYSIWYG buttons
if( !function_exists('base_extended_editor_mce_buttons') ){
function base_extended_editor_mce_buttons($buttons) {
// The settings are returned in this array. Customize to suite your needs.
return array(
'bold', 'italic', 'underline', 'sub', 'sup', 'charmap', 'removeformat', 'spellchecker'
);
/* WordPress Default
return array(
'bold', 'italic', 'strikethrough', 'separator',
@natejones
natejones / Zendesk from URL
Created January 23, 2014 20:04
ColumbiaChi Zendesk Chat+Ticket from URL
<a href="http://columbiachi.zendesk.com/account/dropboxes/20283646" onClick="script: Zenbox.show(); return false;" target="_blank">[CHAT ICON]</a>
<script type="text/javascript" src="//assets.zendesk.com/external/zenbox/v2.6/zenbox.js"></script>
<style type="text/css" media="screen, projection">
@import url(//assets.zendesk.com/external/zenbox/v2.6/zenbox.css);
</style>
<script type="text/javascript">
if (typeof(Zenbox) !== "undefined") {
Zenbox.init({
dropboxID: "20283646",
url: "https://columbiachi.zendesk.com",
@natejones
natejones / new_gist_file_0
Created December 6, 2013 14:28
Social sharing links via @cferdinandi
<a target="_blank" href="https://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">Tweet</a>
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=YOUR-URL">Share on Facebook</a>
<a target="_blank" href="https://plus.google.com/share?url=YOUR-URL">Plus on Google+</a>
<a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=YOUR-URL&title=YOUR-TITLE&summary=YOUR-SUMMARY&source=YOUR-URL">Share on LinkedIn</a>
<a target="_blank" href="http://pinterest.com/pin/create/button/?url=YOUR-URL&description=YOUR-DESCRIPTION&media=YOUR-IMAGE-SRC">Pin on Pinterest</a>
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Oberlin Proof</title>
<style>
.my-div { height: 400px; width:800px; overflow : hidden; }
.my-iframe { position: absolute; top: -190px; left: -250px; width: 960px; height: 460px; }