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 | |
//* Do NOT include the opening php tag | |
//* Set Genesis Responsive Slider defaults | |
add_filter( 'genesis_responsive_slider_settings_defaults', 'latitude_responsive_slider_defaults' ); | |
function latitude_responsive_slider_defaults( $defaults ) { | |
$args = array( | |
'posts_num' => '3', | |
'slideshow_pager' => '', |
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 | |
/** | |
* Define color choices for a Genesis Child Theme | |
* and then set up a way for them to be changed from the | |
* front end in a theme demo. | |
* | |
* @author FAT Media <http://youneedfat.com> | |
* @copyright Copyright (c) 2013, FAT Media, LLC | |
* @license GPL-2.0+ | |
*/ |
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 | |
//* Do NOT include the opening php tag | |
// THis is the code from the home.php file | |
add_action( 'genesis_after_header', 'enterprise_home_top_helper' ); | |
/** | |
* Conditionally add Home Top #1 (home-top-1) sidebar and WP-Cycle. | |
*/ | |
function enterprise_home_top_helper() { |
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 odd/even post class | |
function sample_oddeven_post_class ( $classes ) { | |
global $current_class; | |
$classes[] = $current_class; | |
$current_class = ($current_class == 'odd') ? 'even' : 'odd'; | |
return $classes; | |
} | |
add_filter ( 'post_class' , 'sample_oddeven_post_class' ); |
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 | |
/** | |
* CellPath 404 Page Layout | |
* | |
* @package CellPath | |
* @author Aaron Hartland, http://www.aaronhartland.com | |
* @copyright Copyright (c) 2012, Aaron Hartland | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
* | |
*/ |
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_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'ah_custom_do_footer' ); | |
function ah_custom_do_footer() { | |
$creds = 'Copyright © '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved.'; | |
$footernav = wp_nav_menu( array('menu' => 'Footer' )); | |
echo $footernav; | |
} |
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 | |
/** Customize the credits */ | |
add_filter('genesis_footer_creds_text', 'custom_footer_creds_text'); | |
function custom_footer_creds_text() { | |
echo '<div class="creds"><p>'; | |
echo 'Copyright ©'; | |
echo ' ' . date('Y') ; | |
echo ' ' . get_bloginfo('name') ; | |
echo ' · All Rights Reserved'; |
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 is for ths sample grid */ | |
.example-grid { | |
overflow: hidden; | |
width: 100%; | |
} | |
#inner .column, #inner .columns { | |
background: #DDD; | |
height: 25px; | |
line-height: 25px; |
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
<!-- JS for the example grid --> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> | |
<script> | |
$('.hidden-code').click(function(e) { | |
e.preventDefault(); | |
$(this).children('.gist').slideToggle(); | |
}) | |
var originalText; | |
$('.example-grid').children().hover( |
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_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action('genesis_before_header', 'ah_genesis_do_nav'); | |
/** | |
* Echoes the "Primary Navigation" menu. | |
* | |
* The preferred option for creating menus is the Custom Menus feature in | |
* WordPress. There is also a fallback to using the Genesis wrapper functions | |
* for creating a menu of Pages, or a menu of Categories (maintained only for |