[Resolved] Displaying image on woocommerce product page with GPHooks

Home Forums Support [Resolved] Displaying image on woocommerce product page with GPHooks

Home Forums Support Displaying image on woocommerce product page with GPHooks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #111102
    Joseph

    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

    #111174
    Tom
    Lead Developer
    Lead Developer

    Yea, WooCommerce works a little differently.

    Try this:

    <?php if ( is_woocommerce() ) : ?>
          Your image in here
    <?php endif;?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.