Moving WooCommerce Upsells on Product Pages
…echo ‘<style> .woocommerce .widget_wc_upsells ul.products li.product, .woocommerce-page .widget_wc_upsells ul.products li.product { width: 48%; margin-top: 1em; } </style>’; } } Now my upsells will also look like they belong there when used in a widget, as styles will be adjusted for the widget space. You can view the complete code here — click “Download Zip” and install this as a plugin if desired, or checkout the gist to modify it further for y…