Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Created September 12, 2017 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlepod/14c023b8ffa6482c84437f78b419259d to your computer and use it in GitHub Desktop.
Save turtlepod/14c023b8ffa6482c84437f78b419259d to your computer and use it in GitHub Desktop.
Use 3 Column Listing in Widgetize Page Template
<?php
/**
* Use 3 Column Listing in Widgetize Page Template
*/
add_action( 'template_redirect', function() {
if ( is_page_template( 'page-templates/template-widgetized.php' ) ) {
add_filter( 'listify_get_card_listing_class_columns', function( $col ) {
return 'col-xs-12 col-md-6 col-lg-4';
});
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment