Created
May 2, 2021 03:33
-
-
Save nayemDevs/37a18015126619115bb8944722bf1c74 to your computer and use it in GitHub Desktop.
Increase product list column on 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
#-- Modify the number of products column of the single store page --# | |
function single_store_page_product_columns($columns){ | |
if(dokan_is_store_page()){ | |
return $columns = 4; | |
} else { | |
return $columns; | |
} | |
} | |
add_filter( 'loop_shop_columns', 'single_store_page_product_columns'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment