Created
January 4, 2015 08:55
-
-
Save hemusyl/350700fc0f3ab29e8cb2 to your computer and use it in GitHub Desktop.
Switch Between 3-Column and 4-Column Grid
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 | |
/** | |
* Switch between 3-column and 4-column layout grid | |
*/ | |
add_filter( 'wpsight_layout', 'wpsight_custom_layout', 11 ); | |
function wpsight_custom_layout( $layout ) { | |
if( $layout == 'three' ) | |
return 'four'; | |
return 'three'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment