Created
March 18, 2013 18:11
-
-
Save cobaltapps/5189410 to your computer and use it in GitHub Desktop.
This is a simple "Portfolio" Custom Page Template for the Genesis Framework.
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 | |
/* | |
Template Name: Portfolio | |
*/ | |
/** Force the full width layout on the Portfolio page */ | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
/** Remove the standard loop */ | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
/** Add the Portfolio widget area */ | |
add_action( 'genesis_loop', 'balance_portfolio_widget' ); | |
function balance_portfolio_widget() { | |
dynamic_sidebar( 'portfolio' ); | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment