Created
May 13, 2022 03:54
-
-
Save J-H-Mojumder/d6850d4c281b9ee4381bf8b881bf7a9b to your computer and use it in GitHub Desktop.
Change column number of the single store page.
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 | |
function single_store_page_product_columns( $columns ){ | |
if( dokan_is_store_page() ){ | |
return $columns = 4; //enter your desired number | |
} else { | |
return $columns; | |
} | |
} | |
add_filter( 'loop_shop_columns', 'single_store_page_product_columns', 99); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment