Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cobaltapps/5189929 to your computer and use it in GitHub Desktop.
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.
<?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