Reply To: Page Header Addon Not Working On WooCommerce Pages

Home Forums Support Page Header Addon Not Working On WooCommerce Pages Reply To: Page Header Addon Not Working On WooCommerce Pages

Home Forums Support Page Header Addon Not Working On WooCommerce Pages Reply To: Page Header Addon Not Working On WooCommerce Pages

#102444
Tom
Lead Developer
Lead Developer

Hi there,

WooCommerce unfortunately treats the Shop index page like the WordPress blog index page, thus ignoring any saved metabox values from editing that page – pretty frustrating.

There is a work-around if you’re willing to use GP Hooks though.

We can target the shop page using this conditional: is_shop()

So, if you wanted to add an image below the header on the shop page, you would go into “Appearance > GP Hooks” and add something like this to the “After Header” hook:

<?php if ( function_exists( 'is_shop' ) ) : ?>
      <?php if ( is_shop() ) : ?>
            <div class="page-header-image grid-container grid-parent generate-page-header"><img src="THE URL TO YOUR IMAGE HERE" alt="" /></div>
      <?php endif; ?>
<?php endif; ?>

If you need more info just let me know 🙂