Skip to content

Instantly share code, notes, and snippets.

@riskiii
riskiii / gist:2015011
Created March 11, 2012 04:21 — forked from belltoy/gist:2014935
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@riskiii
riskiii / functions.php
Created March 11, 2012 04:28 — forked from GaryJones/functions.php
Genesis: Split Sidebars
<?php
add_action( 'genesis_after_sidebar_widget_area', 'child_split_sidebars' );
/**
* Add two sidebars underneath the primary sidebar.
*
* @since 1.0.0
*
* @author Gary Jones
* @link http://code.garyjones.co.uk/genesis-split-sidebars
@riskiii
riskiii / gist:2015036
Created March 11, 2012 04:29 — forked from jbreitenbucher/gist:1996824
Genesis: HTML5
#HTML5 DOCTYPE
remove_action( 'genesis_doctype', 'genesis_do_doctype' );
add_action( 'genesis_doctype', create_function( '', 'echo "<!DOCTYPE html><html><head>";' ) );
@riskiii
riskiii / gist:2015046
Created March 11, 2012 04:35 — forked from billerickson/gist:1325492
Genesis: Unregister Unused Layouts
<?php
// Unregister other site layouts
genesis_unregister_layout( 'content-sidebar' );
genesis_unregister_layout( 'sidebar-content' );
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );
@riskiii
riskiii / gist:2015048
Created March 11, 2012 04:36 — forked from billerickson/gist:1229106
Genesis: Facebook Like
//** This goes in the setup function **//
// Remove the default doctype and build our own
remove_action( 'genesis_doctype', 'genesis_do_doctype' );
add_action( 'genesis_doctype', 'be_do_doctype' );
// Add facebook's meta tags
add_action( 'wp_head', 'be_facebook_meta' );
@riskiii
riskiii / gist:2015049
Created March 11, 2012 04:37 — forked from billerickson/gist:1325490
Genesis: Force Page Layout
<?php
// Force layout on category
add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content');
@riskiii
riskiii / gist:2015050
Created March 11, 2012 04:37 — forked from billerickson/gist:1325495
Genesis: Structural Wrap
<?php
// Structural Wrap
add_theme_support( 'genesis-structural-wraps', array( 'inner' ) );
@riskiii
riskiii / gist:2015051
Created March 11, 2012 04:38 — forked from billerickson/gist:1325499
Genesis: Post Info
<?php
/**
* Modify Post Info
* @author Bill Erickson
* @link http://www.billerickson.net/code/genesis-post-info/
*
* @param string original post info
* @return string modified post info
*/
function be_post_info_filter($post_info) {
@riskiii
riskiii / gist:2015052
Created March 11, 2012 04:38 — forked from billerickson/gist:1325500
Genesis: Post Meta
<?php
/**
* Modify Post Meta
* @author Bill Erickson
* @link http://www.billerickson.net/code/genesis-post-meta
*
* @param string original post meta
* @return string modified post meta
*/
function be_post_meta_filter($post_meta) {
@riskiii
riskiii / gist:2015053
Created March 11, 2012 04:38 — forked from billerickson/gist:1325504
Genesis: Remove Footer
<?php
// Remove Footer
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);