roots / sage-woocommerce

WooCommerce integration for Sage 9 themes
212 stars 56 forks source link

Woocommerce Shop Header #24

Open discoveryjames opened 4 years ago

discoveryjames commented 4 years ago

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?

Chaoste commented 4 years ago

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

dirad commented 3 years ago

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.