Skip to content

Instantly share code, notes, and snippets.

@arobbins arobbins/wps-custom.php
Last active Jan 5, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.