Took me some time to find out a working code to show the header above the sidebar.
But I now have the problem that I just want to show the header on the shop-page and not on the product pages.
So I'm trying to figure out what do I need to change?
add_action('woocommerce_before_main_content','before_main_content');
function before_main_content() { ?
<img src="image url">
<?php
}
?
Thank you guys for all the answers :) This one worked for me :
function before_main_content() {
if (is_shop()) {
?>
<img src="image url">
<?php
}
}
?>