Hi @jarvis thanks for this. Unfortunately it didn’t seem to work. However, (and this probably isn’t the best solution) I was able to hide it on the product overview page using this css:
/*-- HIDE HEADER PRODUCT OVERVIEW --*/
header.woocommerce-products-header {
display: none;
}
So for now it is hidden and appears correctly on the product page when in and out of stock.
Thanks.