Forked from cobaltapps/"Portfolio" Genesis Template Custom Hook Box Code
Created
March 7, 2019 02:36
-
-
Save DalavanCloud/45ec255e925f84d9325dd45ab94510cf 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 hidden or 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