Archived topic
Elements Header won't show on Woocommerce Shop page and Shop categories.
11 replies · Started by Tina on November 10, 2018
I'm having a problem with the new elements header not working with my main Woocommerce Store page or Product categories.
The same elements header has products also specified for location, and it appears fine on the product pages.
Do I have to do something else for the elements header to appear on the main page for Woocommerce and product categories?
Thanks.
-Tina
Hi there,
Are product archive and product category archive selected in the display rule?
Let me know :)
Hi Leo,
No. I just have the shop page, product and product categories selected.
So have you tried to select what I suggested above?
If it's still not working, can you guide me to the page that's not working?
Okay, so I added it to the product/tag archives and the product categories now work but the main shop page still doesn't show the header/hero element.
The main shop page should be Product Archive in display rule.
Can you make sure it's selected?
Got it! Thanks, Much Appreciated. :)
No problem :)
I am having a similar issue with the Shop Page. In Elements I set up a hook for a banner to appear after_header with the display set to Product Archive and does not appear.
Hook:
<?php if (is_page('') ) : ?>
<?php endif; ?>
Website page:
https://provinciaclient.com/sos2/merch-store/
You can see the banner "SOS FOundation" on the other pages.
Thanking you in advance.
Hi there,
your PHP includes the is_page() conditional - which is the reason its not displaying on the shop. You don't actually need this condition, just use the H3 HTML and set your display rules.
Thank you, David, that did the trick.
Glad to be of help