Created
August 3, 2021 08:17
-
-
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/
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
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