Created
April 14, 2023 06:53
-
-
Save akther80/9eaeb417dc74329925b2d4780bae5e78 to your computer and use it in GitHub Desktop.
Cartzilla - Change Dokan vendor products column
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
if ( ! function_exists( 'cartzilla_dokan_vendor_page_columns' ) ) { | |
function cartzilla_dokan_vendor_page_columns( $columns ) { | |
$layout = get_theme_mod( 'store_layout', 'left' ); | |
if ( 'left' === $layout || 'right' === $layout ) { | |
$columns = 2; | |
} else { | |
$columns = 3; | |
} | |
return $columns; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment