Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Woocommerce Shop Header #24

Open
discoveryjames opened this issue Feb 6, 2020 · 2 comments
Open

Woocommerce Shop Header #24

discoveryjames opened this issue Feb 6, 2020 · 2 comments

Comments

@discoveryjames
Copy link

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
Copy link

Chaoste commented Apr 24, 2020

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
Copy link

dirad commented Jan 21, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants