⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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 | |
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 |
This file contains 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
#HTML5 DOCTYPE | |
remove_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', create_function( '', 'echo "<!DOCTYPE html><html><head>";' ) ); |
This file contains 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 | |
// 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' ); |
This file contains 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
//** 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' ); | |
This file contains 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 | |
// Force layout on category | |
add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content'); |
This file contains 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 | |
// Structural Wrap | |
add_theme_support( 'genesis-structural-wraps', array( 'inner' ) ); |
This file contains 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 | |
/** | |
* 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) { |
This file contains 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 | |
/** | |
* 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) { |
This file contains 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 | |
// 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); |
OlderNewer