Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a background image to the shop page only in WooCommerce
add_filter( 'wp_head', 'wo_custom_shop_background' );
function wo_custom_shop_background() {
if( is_shop() && !is_admin() ) {
body {
background: url( no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment