Site logo

Archived topic

Displaying image on woocommerce product page with GPHooks

1 reply · Started by Joseph on May 29, 2015

Viewing posts 1–2 of 2

Trying to set a full width image across the top of the woocommerce product page directly under the header/menu (grey bar) and I used this snippet in the GPHooks After Header with product page id 274 but I can't get it to display. Is this because woocommerce responds differently withing their plugin?

<?php if ( is_page( '274' ) ) : ?>

<?php endif; ?>

Thanks in advance!!

here is the page: http://provinciawebdesign.com/disruptup/?post_type=product

Yea, WooCommerce works a little differently.

Try this:

<?php if ( is_woocommerce() ) : ?>
      Your image in here
<?php endif;?>
This archived topic is closed to new replies.