sage-woocommerce icon indicating copy to clipboard operation
sage-woocommerce copied to clipboard

Woocommerce Shop Header

Open discoveryjames opened this issue 5 years ago • 2 comments

The default WordPress header is loaded when get_header('shop') is called, instead of the Sage 9.

If I create a header-shop.php file inside of views, it's not read and ignored.

If I create it in the root of the theme folder, it is found and ran, but then blade isn't included.

How do you get Woocommerce to use the header from the Sage9 theme?

discoveryjames avatar Feb 06 '20 16:02 discoveryjames

Hi, I have no idea about this whole Sage stuff but to me it looks like you did not follow the instructions from the README.md: https://github.com/roots/sage-woocommerce#usage

It says that you should not call "get_header" directly but instead switch to "do_action".

Greetings, Thomas

Chaoste avatar Apr 24 '20 12:04 Chaoste

Joining in on this, i am also facing this issue.

I am using do_action('get_header', 'shop'); however the loaded template is header.blade.php, not header-shop.blade.php. I tried placing it in the partials folder where it seems like it should go, but also views and also the root folder.

dirad avatar Jan 21 '21 21:01 dirad