Last active
January 5, 2018 03:50
-
-
Save arobbins/8e0afcf3981e9fd088323e32330cc2d0 to your computer and use it in GitHub Desktop.
Amanda's WP Shopify customizations
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
<?php | |
// Shows / Enables WordPress Sidebar on WP Shopify products-all template | |
function wps_products_show_sidebar_callback() { | |
return true; | |
} | |
add_filter('wps_products_show_sidebar', 'wps_products_show_sidebar_callback'); | |
// Adds class(s) to product links within WP Shopify products-all template | |
public function wps_products_link_class_callback() { | |
return 'class1 class2'; | |
} | |
add_filter('wps_products_link_class', 'wps_products_link_class_callback'); | |
// Adds class(s) to the content wrapper within WP Shopify products-all template | |
public function wps_products_class_callback() { | |
return 'class1 class2'; | |
} | |
add_filter('wps_products_class', 'wps_products_class_callback'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment