Created
March 18, 2013 19:11
-
-
Save cobaltapps/5189929 to your computer and use it in GitHub Desktop.
Dynamik for Genesis Custom Hook Box code used to create a Custom "Portfolio" Page Template remplacement.
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 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() { | |
?>[portfolio]<?php; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment