Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Single Post
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
<?php
/**
* Section Title
*
*/
function be_section_title() {
$section_info = array( 'title' => '', 'subtitle' => '', 'title_url' => '', 'subtitle_url' => '' );
<?php
/**
* Portfolio Archive
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
<?php
/**
* Post Info
* Displayed below the post title on the single and archive view
* @author Bill Erickson
* @link http://wordpress.org/support/topic/plugin-interstrategy-events-manager-documentation?replies=4
*
* @param string, original post info
* @return string, modified post info
<?php
/* Force full width layout
------------------------------------------------------------ */
add_filter('genesis_pre_get_option_site_layout', '__genesis_return_full_width_content');
@jamiemitchell
jamiemitchell / functions.php
Last active December 26, 2015 02:09 — forked from billerickson/gist:1326002
Add Extra Code to Primary Menu in Genesis. 2 examples
<?php
/* Add Extra Code to Primary Menu
------------------------------------------------------------ */
function be_menu_extras($menu, $args) {
$extras = '<li class="right">Your extras go here</li>';
return $menu . $extras;
}
add_filter('wp_nav_menu_primary_items','be_menu_extras', 10, 2);
<?php
/**
* Taxonomies
*
* This file registers any custom taxonomies
*
* @package CoreFunctionality
* @since 1.0.0
* @link https://github.com/billerickson/Core-Functionality
* @author Bill Erickson <[email protected]>
<?php
/**
* Portfolio Archive
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
<?php
// Template Name: Portsecond
// Force layout to full-width-content
add_filter('genesis_pre_get_option_site_layout', 'crystal_portsecond_layout');
function crystal_portsecond_layout($layout) {
$layout = 'full-width-content';
return $layout;
}
<?php
/**
* Archive
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <[email protected]>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License