Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
Created March 18, 2013 18:11
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/5189410 to your computer and use it in GitHub Desktop.
Save cobaltapps/5189410 to your computer and use it in GitHub Desktop.
This is a simple "Portfolio" Custom Page Template for the Genesis Framework.
<?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