Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save manchumahara/42ba61cab32d3f939fac115f1212601d to your computer and use it in GitHub Desktop.
Save manchumahara/42ba61cab32d3f939fac115f1212601d to your computer and use it in GitHub Desktop.
How to modify cbx bookmark grid cols https://codeboxr.com/product/cbx-wordpress-bookmark/
add_filter('cbxwpbookmark_bookmarkgrid_cols_class', 'cbxwpbookmark_bookmarkgrid_cols_class_extend', 10, 2);
/**
* Change grid size
*
* @param $grid
* @param $object_type
*
* @return mixed
*/
function cbxwpbookmark_bookmarkgrid_cols_class_extend($grid, $object_type){
//grid default value 'col-xs-12 col-sm-6 col-md-4'
//we used bootstrap grid
//$grid = 'col-xs-12 col-sm-6 col-md-4'; //change and uncomment this line to change grid values
$grid = 'col-12'; //change and uncomment this line to change grid values
return $grid;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment