Skip to content

Instantly share code, notes, and snippets.

@arobbins
Last active January 5, 2018 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arobbins/8e0afcf3981e9fd088323e32330cc2d0 to your computer and use it in GitHub Desktop.
Save arobbins/8e0afcf3981e9fd088323e32330cc2d0 to your computer and use it in GitHub Desktop.
Amanda's WP Shopify customizations
<?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